From 64a7277c0aa5ba9349c247d17f4c50848c09dbf0 Mon Sep 17 00:00:00 2001 From: Arya Date: Fri, 25 Oct 2024 08:55:41 -0400 Subject: [PATCH] Updates `total_size_on_disk` to be the total sst file size (#8966) --- zebra-state/src/service/finalized_state/disk_db.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zebra-state/src/service/finalized_state/disk_db.rs b/zebra-state/src/service/finalized_state/disk_db.rs index b5095d22192..69be5a4585f 100644 --- a/zebra-state/src/service/finalized_state/disk_db.rs +++ b/zebra-state/src/service/finalized_state/disk_db.rs @@ -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