From 6f443e9dbb3825405a9d98bad7384be8d76330bf Mon Sep 17 00:00:00 2001 From: obdev Date: Tue, 21 Jun 2022 10:54:12 +0800 Subject: [PATCH] bugfix: total_size in __all_virtual_disk_stat table should use datafile_maxsize when auto extend is on --- src/observer/virtual_table/ob_all_disk_stat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/observer/virtual_table/ob_all_disk_stat.cpp b/src/observer/virtual_table/ob_all_disk_stat.cpp index 2d742e6184..3ecfc374d9 100644 --- a/src/observer/virtual_table/ob_all_disk_stat.cpp +++ b/src/observer/virtual_table/ob_all_disk_stat.cpp @@ -87,7 +87,7 @@ int ObInfoSchemaDiskStatTable::inner_get_next_row(ObNewRow*& row) } case TOTAL_SIZE: { cells[cell_idx].set_int( - OB_FILE_SYSTEM.get_total_macro_block_count() * OB_FILE_SYSTEM.get_macro_block_size()); + OB_FILE_SYSTEM.get_total_macro_block_max_count() * OB_FILE_SYSTEM.get_macro_block_size()); break; } case USED_SIZE: { -- GitLab