Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix replication bug #16021

Merged
merged 1 commit into from
Mar 20, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions ydb/core/blobstorage/vdisk/repl/blobstorage_hullrepljob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,12 @@ namespace NKikimr {

if (AddingTasks) {
for (; it.Valid(); it.Next()) {
StartKey = it.GetCurKey().LogoBlobID();

if (checkRestart()) {
return;
}

StartKey = it.GetCurKey().LogoBlobID();

// we still have some space in recovery machine logic, so we can add new item
ProcessItem(it, *barriers, allowKeepFlags);
MilestoneQueue.PopIfNeeded(StartKey);
Expand All @@ -147,12 +147,12 @@ namespace NKikimr {
}

for (; it.Valid(); it.Next()) {
StartKey = it.GetCurKey().LogoBlobID();

if (checkRestart()) {
return;
}

StartKey = it.GetCurKey().LogoBlobID();

// check the milestone queue, if we have requested blob
if (MilestoneQueue.Match(StartKey, &ReplInfo->ItemsTotal, &ReplInfo->WorkUnitsTotal)) {
break;
Expand Down
Loading