crimson/onode-staged-tree: allow non-empty DeltaRecorder to be destructed

Fixes: http://tracker.ceph.com/issues/50028
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
This commit is contained in:
Yingxin Cheng 2021-03-29 14:04:13 +08:00
parent 6049793368
commit 01a8c5a7f9

View File

@ -18,7 +18,10 @@ namespace crimson::os::seastore::onode {
class DeltaRecorder {
public:
virtual ~DeltaRecorder() {
assert(is_empty());
/* May be non-empty if transaction is abandoned without
* being submitted -- conflicts are a particularly common
* example (denoted generally by returning crimson::ct_error::eagain).
*/
}
bool is_empty() const {