aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxenoxeno <xeno@ydb.tech>2023-10-17 01:35:47 +0300
committerxenoxeno <xeno@ydb.tech>2023-10-17 01:57:07 +0300
commitbea9c250522d1595e1cdc48c685299053ff2360a (patch)
tree084eb90728328e1d6ed2fcefb4dd7aa7fd217cd8
parentd8195f952f701e0565d2130706ac4b7777ba7e79 (diff)
downloadydb-bea9c250522d1595e1cdc48c685299053ff2360a.tar.gz
simple fix to avoid double request of the same storage pool from bsc KIKIMR-19727
-rw-r--r--ydb/core/viewer/json_storage_base.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/ydb/core/viewer/json_storage_base.h b/ydb/core/viewer/json_storage_base.h
index cc9440746f..d350d8f732 100644
--- a/ydb/core/viewer/json_storage_base.h
+++ b/ydb/core/viewer/json_storage_base.h
@@ -106,11 +106,11 @@ protected:
uint64 Read;
uint64 Write;
- TGroupRow()
+ TGroupRow()
: Used(0)
, Limit(0)
, Read(0)
- , Write(0)
+ , Write(0)
{}
};
THashMap<TString, TGroupRow> GroupRowsByGroupId;
@@ -279,7 +279,11 @@ public:
if (!FilterTenant.empty()) {
FilterStoragePools.emplace(storagePoolName);
}
- StoragePoolInfo[storagePoolName].Kind = storagePool.GetKind();
+ auto& storagePoolInfo(StoragePoolInfo[storagePoolName]);
+ if (!storagePoolInfo.Kind.empty()) {
+ continue;
+ }
+ storagePoolInfo.Kind = storagePool.GetKind();
THolder<TEvBlobStorage::TEvControllerSelectGroups> request = MakeHolder<TEvBlobStorage::TEvControllerSelectGroups>();
request->Record.SetReturnAllMatchingGroups(true);
request->Record.AddGroupParameters()->MutableStoragePoolSpecifier()->SetName(storagePoolName);