This is an automated email from the ASF dual-hosted git repository.

dataroaring pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-3.0 by this push:
     new 3b85f316c00 branch-3.0: [fix](table stat) Fix show data size of single 
replica result incorrect #39751 (#48106)
3b85f316c00 is described below

commit 3b85f316c004fbfb9c8715db4af4cc2a1328c673
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Sat Feb 22 13:39:09 2025 +0800

    branch-3.0: [fix](table stat) Fix show data size of single replica result 
incorrect #39751 (#48106)
    
    Cherry-picked from #39751
    
    Co-authored-by: xy720 <22125576+xy...@users.noreply.github.com>
---
 fe/fe-core/src/main/java/org/apache/doris/catalog/OlapTable.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fe/fe-core/src/main/java/org/apache/doris/catalog/OlapTable.java 
b/fe/fe-core/src/main/java/org/apache/doris/catalog/OlapTable.java
index c6109833326..865e276d8ce 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/catalog/OlapTable.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/catalog/OlapTable.java
@@ -3329,7 +3329,7 @@ public class OlapTable extends Table implements 
MTMVRelatedTableIf, GsonPostProc
 
     public long getDataSize(boolean singleReplica) {
         if (singleReplica) {
-            statistics.getDataSize();
+            return statistics.getDataSize();
         }
 
         return statistics.getTotalReplicaDataSize();


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to