Skip to content

Commit

Permalink
crimson/onode-staged-tree: allow non-empty DeltaRecorder to be destru…
Browse files Browse the repository at this point in the history
…cted

Fixes: http://tracker.ceph.com/issues/50028
Signed-off-by: Yingxin Cheng <[email protected]>
  • Loading branch information
cyx1231st committed Mar 29, 2021
1 parent 6049793 commit 01a8c5a
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 01a8c5a

Please sign in to comment.