Skip to content

Commit

Permalink
--amend
Browse files Browse the repository at this point in the history
  • Loading branch information
BorysTheDev committed Jan 25, 2024
1 parent de63f40 commit d99ef14
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/server/journal/streamer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,9 @@ void RestoreStreamer::WriteBucket(PrimeTable::bucket_iterator it) {
bool is_data_present = false;
{
FiberAtomicGuard fg; // Can't switch fibers because that could invalidate iterator

string key_buffer; // we can reuse it
for (; !it.is_done(); ++it) {
const auto& pv = it->second;
string key_buffer; // we can reuse it
string_view key = it->first.GetSlice(&key_buffer);
if (ShouldWrite(key)) {
is_data_present = true;
Expand Down

0 comments on commit d99ef14

Please sign in to comment.