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

shuwenwei pushed a commit to branch table_disk_usage_statistics_with_cache
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to 
refs/heads/table_disk_usage_statistics_with_cache by this push:
     new 56e9bf247cb remove stale code
56e9bf247cb is described below

commit 56e9bf247cb4f3c0ec05fad144906031645df879
Author: shuwenwei <[email protected]>
AuthorDate: Tue Feb 3 17:31:32 2026 +0800

    remove stale code
---
 .../tableDiskUsageCache/TableDiskUsageCache.java   | 22 ----------------------
 1 file changed, 22 deletions(-)

diff --git 
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/utils/tableDiskUsageCache/TableDiskUsageCache.java
 
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/utils/tableDiskUsageCache/TableDiskUsageCache.java
index 000a3f0c355..fc4845e3883 100644
--- 
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/utils/tableDiskUsageCache/TableDiskUsageCache.java
+++ 
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/utils/tableDiskUsageCache/TableDiskUsageCache.java
@@ -19,15 +19,11 @@
 
 package org.apache.iotdb.db.storageengine.dataregion.utils.tableDiskUsageCache;
 
-import org.apache.iotdb.commons.client.exception.ClientManagerException;
 import org.apache.iotdb.commons.concurrent.IoTDBThreadPoolFactory;
 import org.apache.iotdb.commons.concurrent.ThreadName;
 import org.apache.iotdb.commons.utils.PathUtils;
 import org.apache.iotdb.commons.utils.TestOnly;
 import org.apache.iotdb.confignode.rpc.thrift.TTableInfo;
-import org.apache.iotdb.db.protocol.client.ConfigNodeClient;
-import org.apache.iotdb.db.protocol.client.ConfigNodeClientManager;
-import org.apache.iotdb.db.protocol.client.ConfigNodeInfo;
 import org.apache.iotdb.db.storageengine.dataregion.DataRegion;
 import org.apache.iotdb.db.storageengine.dataregion.tsfile.TsFileID;
 import 
org.apache.iotdb.db.storageengine.dataregion.utils.tableDiskUsageCache.object.EmptyObjectTableSizeCacheReader;
@@ -35,7 +31,6 @@ import 
org.apache.iotdb.db.storageengine.dataregion.utils.tableDiskUsageCache.ob
 import 
org.apache.iotdb.db.storageengine.dataregion.utils.tableDiskUsageCache.tsfile.TsFileTableDiskUsageCacheWriter;
 import 
org.apache.iotdb.db.storageengine.dataregion.utils.tableDiskUsageCache.tsfile.TsFileTableSizeCacheReader;
 
-import org.apache.thrift.TException;
 import org.apache.tsfile.utils.Pair;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -144,23 +139,6 @@ public class TableDiskUsageCache {
     }
   }
 
-  public static Map<String, List<TTableInfo>> getDatabaseTableInfoMap()
-      throws TException, ClientManagerException {
-    Map<String, List<TTableInfo>> result = databaseTableInfoMap;
-    if (result == null) {
-      synchronized (TableDiskUsageCache.class) {
-        if (databaseTableInfoMap == null) {
-          try (final ConfigNodeClient client =
-              
ConfigNodeClientManager.getInstance().borrowClient(ConfigNodeInfo.CONFIG_REGION_ID))
 {
-            databaseTableInfoMap = 
client.showTables4InformationSchema().getDatabaseTableInfoMap();
-          }
-          result = databaseTableInfoMap;
-        }
-      }
-    }
-    return result;
-  }
-
   public void write(String database, TsFileID tsFileID, Map<String, Long> 
tableSizeMap) {
     if (tableSizeMap == null || tableSizeMap.isEmpty()) {
       // tree model

Reply via email to