From ff3b08f9c9bebaadee33cd5fd1713824e0ea3ec3 Mon Sep 17 00:00:00 2001 From: gaishun Date: Wed, 30 Oct 2024 07:44:04 +0000 Subject: [PATCH] Fix: backup_size in __all_space_usage of shared_storage --- src/storage/tablet/ob_tablet.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/storage/tablet/ob_tablet.cpp b/src/storage/tablet/ob_tablet.cpp index 2ac6127796..73bd9e21ab 100644 --- a/src/storage/tablet/ob_tablet.cpp +++ b/src/storage/tablet/ob_tablet.cpp @@ -7929,7 +7929,8 @@ int ObTablet::calc_sstable_occupy_size( // TODO gaishun.gs: for major_sstable, should add the meta_block occupy_size; ss_public_sstable_occupy_size += cur_sstable_occupy_size; } - if (!meta_handle.get_sstable_meta().get_basic_meta().table_backup_flag_.has_local()) { + if (!meta_handle.get_sstable_meta().get_basic_meta().table_backup_flag_.has_local() + && meta_handle.get_sstable_meta().get_basic_meta().table_backup_flag_.has_backup()) { pure_backup_sstable_occupy_size += cur_sstable_occupy_size; } }