mirror of
https://github.com/ceph/ceph
synced 2024-12-18 17:37:38 +00:00
Merge pull request #14190 from idryomov/wip-respect-epoch-barrier
osdc/Objecter: respect epoch barrier in _op_submit() Reviewed-by: John Spray <john.spray@redhat.com>
This commit is contained in:
commit
f907d83140
@ -2358,7 +2358,12 @@ void Objecter::_op_submit(Op *op, shunique_lock& sul, ceph_tid_t *ptid)
|
||||
|
||||
bool need_send = false;
|
||||
|
||||
if ((op->target.flags & CEPH_OSD_FLAG_WRITE) &&
|
||||
if (osdmap->get_epoch() < epoch_barrier) {
|
||||
ldout(cct, 10) << " barrier, paused " << op << " tid " << op->tid
|
||||
<< dendl;
|
||||
op->target.paused = true;
|
||||
_maybe_request_map();
|
||||
} else if ((op->target.flags & CEPH_OSD_FLAG_WRITE) &&
|
||||
osdmap->test_flag(CEPH_OSDMAP_PAUSEWR)) {
|
||||
ldout(cct, 10) << " paused modify " << op << " tid " << op->tid
|
||||
<< dendl;
|
||||
|
Loading…
Reference in New Issue
Block a user