This is the simplest strategy--much simpler than queueing them and
waking them up again later.
Signed-off-by: Sage Weil <sage@redhat.com>
if (ru > readable_until) {
readable_until = ru;
psdout(20) << __func__ << " readable_until now " << readable_until << dendl;
-#warning fixme: wake up replica?
+ // NOTE: if we ever decide to block/queue ops on the replica,
+ // we'll need to wake them up here.
}
ceph::signedspan ruub;
<< " mnow " << mnow
<< " > readable_until " << ru << dendl;
+ if (!is_primary()) {
+ osd->reply_op_error(op, -EAGAIN);
+ return false;
+ }
+
// go to laggy state
state_set(PG_STATE_LAGGY);
publish_stats_to_osd();