Skip to content

Commit 60b57e7

Browse files
committed
fixup! survey: show some commits/trees/blobs histograms
The `OI_DBCACHED` flag was removed in 7a4bd1b (packfile: always declare object info to be OI_PACKED, 2026-01-12). The commit message suggests to use the `is_delta` flag instead, but that is only populated if `OBJECT_INFO_QUICK` isn't passed (which is part of `OBJECT_INFO_FOR_PREFETCH`, which we use here). At the same time, no caller ever looked at the `cnt_dbcached` count. So let's just remove it. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 1c6398f commit 60b57e7

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

builtin/survey.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,6 @@ struct survey_stats_base_object {
292292
uint32_t cnt_cached; /* see oi.whence */
293293
uint32_t cnt_loose; /* see oi.whence */
294294
uint32_t cnt_packed; /* see oi.whence */
295-
uint32_t cnt_dbcached; /* see oi.whence */
296295

297296
uint64_t sum_size; /* sum(object_size) */
298297
uint64_t sum_disk_size; /* sum(disk_size) */
@@ -1416,9 +1415,6 @@ static void increment_totals(struct survey_context *ctx,
14161415
case OI_PACKED:
14171416
base->cnt_packed++;
14181417
break;
1419-
case OI_DBCACHED:
1420-
base->cnt_dbcached++;
1421-
break;
14221418
default:
14231419
break;
14241420
}

0 commit comments

Comments
 (0)