aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralexvru <alexvru@ydb.tech>2023-10-17 19:30:50 +0300
committeralexvru <alexvru@ydb.tech>2023-10-17 20:15:07 +0300
commit770d5a50f59aaeaa24f62898b530365a904e79bf (patch)
treea7e1bb6e9641b63114bec6dc4d7b694bac0094cf
parent679d3abe25cfc5fc1a8a781a18add27e8a0ee677 (diff)
downloadydb-770d5a50f59aaeaa24f62898b530365a904e79bf.tar.gz
Make blobsan even better
-rw-r--r--ydb/core/blobstorage/groupinfo/blobstorage_groupinfo_partlayout.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ydb/core/blobstorage/groupinfo/blobstorage_groupinfo_partlayout.h b/ydb/core/blobstorage/groupinfo/blobstorage_groupinfo_partlayout.h
index 2444d15f69..eec6494318 100644
--- a/ydb/core/blobstorage/groupinfo/blobstorage_groupinfo_partlayout.h
+++ b/ydb/core/blobstorage/groupinfo/blobstorage_groupinfo_partlayout.h
@@ -77,6 +77,10 @@ namespace NKikimr {
return PerPartStatus[partIdx];
}
+ void Mask(ui32 partIdx, ui32 disks) {
+ PerPartStatus[partIdx] &= disks;
+ }
+
std::pair<ui32, ui32> GetMirror3of4State() const {
const ui32 data = PerPartStatus[0] | PerPartStatus[1];
const ui32 meta = PerPartStatus[2];