osdc/Objecter: prevent double-invocation of linger op callback

Fixes: http://tracker.ceph.com/issues/23872
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
This commit is contained in:
Jason Dillaman 2018-04-25 13:23:00 -04:00
parent 754dd93383
commit 1bc6f31f8f

View File

@ -1652,6 +1652,7 @@ void Objecter::_check_linger_pool_dne(LingerOp *op, bool *need_unregister)
if (osdmap->get_epoch() >= op->map_dne_bound) {
if (op->on_reg_commit) {
op->on_reg_commit->complete(-ENOENT);
op->on_reg_commit = nullptr;
}
*need_unregister = true;
}