diff options
author | alexvru <alexvru@ydb.tech> | 2023-10-17 19:30:50 +0300 |
---|---|---|
committer | alexvru <alexvru@ydb.tech> | 2023-10-17 20:15:07 +0300 |
commit | 770d5a50f59aaeaa24f62898b530365a904e79bf (patch) | |
tree | a7e1bb6e9641b63114bec6dc4d7b694bac0094cf | |
parent | 679d3abe25cfc5fc1a8a781a18add27e8a0ee677 (diff) | |
download | ydb-770d5a50f59aaeaa24f62898b530365a904e79bf.tar.gz |
Make blobsan even better
-rw-r--r-- | ydb/core/blobstorage/groupinfo/blobstorage_groupinfo_partlayout.h | 4 |
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]; |