diff --git a/src/server/snapshot.cc b/src/server/snapshot.cc index 6c5cc52e5490..4c2abbe51a23 100644 --- a/src/server/snapshot.cc +++ b/src/server/snapshot.cc @@ -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)