Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/ctrip_swap_rocks.c
Original file line number Diff line number Diff line change
Expand Up @@ -962,6 +962,14 @@ static uint64_t rocksUsedDbSize(rocks *rocks) {
continue;
}
total_used_db_size += used_db_size;

/* Also include blob file size for this CF, which is not
* accounted for by rocksdb_approximate_sizes_cf. */
uint64_t blob_size = 0;
if (!rocksdb_property_int_cf(rocks->db, handle,
"rocksdb.total-blob-file-size", &blob_size)) {
total_used_db_size += blob_size;
}
}

return total_used_db_size;
Expand Down
1 change: 1 addition & 0 deletions tests/gtid/xsync.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ start_server {tags {"xsync"} overrides {gtid-enabled yes}} {

$M set hello world_1
wait_for_sync $S
wait_for_gtid_sync $M $S

assert_equal [$S get hello] world_1
}
Expand Down
Loading