Skip to content

Commit

Permalink
proper extract (#4988)
Browse files Browse the repository at this point in the history
  • Loading branch information
ildar-khisambeev authored May 30, 2024
1 parent 68e8444 commit 0f9bf9f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ class TPartitionStreamImpl : public TAPartitionStream<UseMigrationProtocol> {
}

TRawPartitionStreamEventQueue<UseMigrationProtocol> ExtractQueue() noexcept {
return std::move(EventsQueue);
return std::exchange(EventsQueue, TRawPartitionStreamEventQueue(CbContext));
}

static void GetDataEventImpl(TIntrusivePtr<TPartitionStreamImpl<UseMigrationProtocol>> partitionStream,
Expand Down

0 comments on commit 0f9bf9f

Please sign in to comment.