File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -160,6 +160,7 @@ func PrintSegmentInfo(info *models.Segment, detailBinlog bool) {
160
160
return info .GetBinlogs ()[i ].FieldID < info .GetBinlogs ()[j ].FieldID
161
161
})
162
162
for _ , log := range info .GetBinlogs () {
163
+ var fieldLogSize int64
163
164
fmt .Printf ("Field %d:\n " , log .FieldID )
164
165
for _ , binlog := range log .Binlogs {
165
166
fmt .Printf ("Path: %s\n " , binlog .LogPath )
@@ -169,8 +170,11 @@ func PrintSegmentInfo(info *models.Segment, detailBinlog bool) {
169
170
binlog .LogSize , binlog .EntriesNum ,
170
171
tf .Format (tsPrintFormat ), tt .Format (tsPrintFormat ))
171
172
binlogSize += binlog .LogSize
173
+ fieldLogSize += binlog .LogSize
172
174
}
175
+ fmt .Println ("--- Field Log Size:" , hrSize (fieldLogSize ))
173
176
}
177
+ fmt .Println ("=== Segment Total Binlog Size: " , hrSize (binlogSize ))
174
178
175
179
fmt .Println ("**************************************" )
176
180
fmt .Println ("Statslogs:" )
You can’t perform that action at this time.
0 commit comments