Add a DCHECK to catch a bug

This commit is contained in:
Roman Gershman 2022-05-30 14:53:23 +03:00
parent 29575d00ee
commit c488baec3c
1 changed files with 2 additions and 0 deletions

View File

@ -75,6 +75,8 @@ void SliceSnapshot::SerializeSingleEntry(DbIndex db_indx, const PrimeKey& pk,
CHECK(!ec && !sfile_->val.empty());
string tmp = std::move(sfile_->val);
channel_bytes_ += tmp.size();
DCHECK(!dest_->IsClosing());
dest_->Push(DbRecord{db_indx, std::move(tmp)});
}
}