Add a DCHECK to catch a bug
This commit is contained in:
parent
29575d00ee
commit
c488baec3c
|
@ -75,6 +75,8 @@ void SliceSnapshot::SerializeSingleEntry(DbIndex db_indx, const PrimeKey& pk,
|
||||||
CHECK(!ec && !sfile_->val.empty());
|
CHECK(!ec && !sfile_->val.empty());
|
||||||
string tmp = std::move(sfile_->val);
|
string tmp = std::move(sfile_->val);
|
||||||
channel_bytes_ += tmp.size();
|
channel_bytes_ += tmp.size();
|
||||||
|
DCHECK(!dest_->IsClosing());
|
||||||
|
|
||||||
dest_->Push(DbRecord{db_indx, std::move(tmp)});
|
dest_->Push(DbRecord{db_indx, std::move(tmp)});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue