Skip to content
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
5 changes: 5 additions & 0 deletions ydb/core/tx/datashard/memory_state_migration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ class TDataShardInMemoryRestoreActor
Buffer.Insert(Buffer.End(), std::move(payload));
}

// We must not have any checkpoints in the buffer yet
Y_ENSURE(Checkpoints.empty());

size_t lastOffset = 0;
for (size_t offset : msg->Record.GetSerializedStateCheckpoints()) {
// These offsets are relative to the start of the new chunk, we make
Expand Down Expand Up @@ -208,6 +211,8 @@ class TDataShardInMemoryRestoreActor
Arena.Reset();
}

Checkpoints.clear();

if (msg->Record.HasContinuationToken()) {
// Request the next data chunk
// Note: we have subscribed in the first request already
Expand Down
Loading