File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -616,11 +616,18 @@ class TJsonTenantInfo : public TViewerPipeClient<TJsonTenantInfo> {
616
616
tenant.SetStorageGroups (storageGroups);
617
617
auto & ssdUsage = *tenant.AddStorageUsage ();
618
618
ssdUsage.SetType (NKikimrViewer::TStorageUsage::SSD);
619
- ssdUsage.SetSize (storageAllocatedSize);
620
- ssdUsage.SetLimit (storageAllocatedLimit);
621
- // TODO(andrew-rykov)
622
- auto & hddUsage = *tenant.AddStorageUsage ();
623
- hddUsage.SetType (NKikimrViewer::TStorageUsage::HDD);
619
+ if (entry.DomainDescription
620
+ && entry.DomainDescription ->Description .HasDatabaseQuotas ()
621
+ && entry.DomainDescription ->Description .HasDiskSpaceUsage ()) {
622
+ ssdUsage.SetSize (entry.DomainDescription ->Description .GetDiskSpaceUsage ().GetTables ().GetTotalSize ());
623
+ ssdUsage.SetLimit (entry.DomainDescription ->Description .GetDatabaseQuotas ().data_size_hard_quota ());
624
+ } else {
625
+ ssdUsage.SetSize (storageAllocatedSize);
626
+ ssdUsage.SetLimit (storageAllocatedLimit);
627
+ }
628
+ // // TODO(andrew-rykov)
629
+ // auto& hddUsage = *tenant.AddStorageUsage();
630
+ // hddUsage.SetType(NKikimrViewer::TStorageUsage::HDD);
624
631
}
625
632
}
626
633
You can’t perform that action at this time.
0 commit comments