Skip to content

Commit

Permalink
Updates total_size_on_disk to be the total sst file size (#8966)
Browse files Browse the repository at this point in the history
  • Loading branch information
arya2 authored Oct 25, 2024
1 parent 0b1562d commit 64a7277
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zebra-state/src/service/finalized_state/disk_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ impl DiskDb {
let total_sst_files_size = db
.property_int_value_cf(cf_handle, "rocksdb.total-sst-files-size")
.unwrap_or(Some(0));
let cf_disk_size = live_data_size.unwrap_or(0) + total_sst_files_size.unwrap_or(0);
let cf_disk_size = total_sst_files_size.unwrap_or(0);
total_size_on_disk += cf_disk_size;
total_live_size_on_disk += live_data_size.unwrap_or(0);
let mem_table_size = db
Expand Down

0 comments on commit 64a7277

Please sign in to comment.