-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
issue-122: merge to stable-23-3 (#687)
* issue-122: ReadBlocks should use commit id to better understand whether it overlaps with unconfirmed blobs or not (#457) * issue #122: DescribeBlocks should respect 'unconfirmed blobs' feature (#473) * issue #122: GetChangedBlocks should respect 'unconfirmed blobs' feature (#484) * issue #122: get rid of OverlapsUnconfirmedBlobs overloading; fix naming inconsistency (#494) * issue #122: limit 'unconfirmed' blob count (#617) * issue #122: add sensors for unconfirmed/confirmed blob count (#659) * issue #122: ConfirmBlobs should be visible in profile log (#670) * issue-122: AddingUnconfirmedBlobs feature to FeaturesConfig (#676) * fix compilation --------- Co-authored-by: Mikhail Montsev <[email protected]>
- Loading branch information
1 parent
38b8930
commit b9e8b20
Showing
33 changed files
with
407 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
cloud/blockstore/libs/storage/partition/model/blob_unique_id_with_range.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#include "blob_unique_id_with_range.h" | ||
|
||
namespace NCloud::NBlockStore::NStorage::NPartition { | ||
|
||
//////////////////////////////////////////////////////////////////////////////// | ||
|
||
bool Overlaps( | ||
const TCommitIdToBlobUniqueIdWithRange& blobs, | ||
ui64 lowCommitId, | ||
ui64 highCommitId, | ||
const TBlockRange32& blockRange) | ||
{ | ||
for (const auto& [entryCommitId, entryBlobs]: blobs) { | ||
if (entryCommitId > highCommitId) { | ||
// entry is too new, thus does not affect this commit range | ||
continue; | ||
} | ||
|
||
if (entryCommitId < lowCommitId) { | ||
// entry is too old, thus does not affect this commit range | ||
continue; | ||
} | ||
|
||
for (const auto& blob: entryBlobs) { | ||
if (blob.BlockRange.Overlaps(blockRange)) { | ||
return true; | ||
} | ||
} | ||
} | ||
|
||
return false; | ||
} | ||
|
||
} // namespace NCloud::NBlockStore::NStorage::NPartition |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
cloud/blockstore/libs/storage/partition/model/unconfirmed_blob.cpp
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.