Skip to content

Commit

Permalink
refactor: address comments
Browse files Browse the repository at this point in the history
Signed-off-by: Stepan Bagritsevich <[email protected]>
  • Loading branch information
BagritsevichStepan committed Dec 26, 2024
1 parent 03b35d6 commit a385330
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/server/snapshot.cc
Original file line number Diff line number Diff line change
Expand Up @@ -331,12 +331,7 @@ void SliceSnapshot::SerializeEntry(DbIndex db_indx, const PrimeKey& pk, const Pr

size_t SliceSnapshot::FlushSerialized(SerializerBase::FlushState flush_state) {
io::StringFile sfile;

error_code ec = serializer_->FlushToSink(&sfile, flush_state);
if (ec) {
VLOG(2) << "Failed to flush to sink: " << ec.message();
return 0;
}
serializer_->FlushToSink(&sfile, flush_state);

size_t serialized = sfile.val.size();
if (serialized == 0)
Expand Down

0 comments on commit a385330

Please sign in to comment.