We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dbb6431 commit bfd9d96Copy full SHA for bfd9d96
1 file changed
src/ctrip_swap_rocks.c
@@ -962,6 +962,14 @@ static uint64_t rocksUsedDbSize(rocks *rocks) {
962
continue;
963
}
964
total_used_db_size += used_db_size;
965
+
966
+ /* Also include blob file size for this CF, which is not
967
+ * accounted for by rocksdb_approximate_sizes_cf. */
968
+ uint64_t blob_size = 0;
969
+ if (!rocksdb_property_int_cf(rocks->db, handle,
970
+ "rocksdb.total-blob-file-size", &blob_size)) {
971
+ total_used_db_size += blob_size;
972
+ }
973
974
975
return total_used_db_size;
0 commit comments