// check for op with rwordered and rebalance or localize reads
if (m->has_flag(CEPH_OSD_FLAGS_DIRECT_READ) && op->rwordered()) {
- dout(4) << __func__ << ": rebelance or localized reads with rwordered not allowed "
+ dout(4) << __func__ << ": rebalance or localized reads with rwordered not allowed "
<< *m << dendl;
osd->reply_op_error(op, -EINVAL);
return;
}
if (m->get_flags() & CEPH_OSD_FLAG_EC_DIRECT_READ) {
+ // This means "is in acting set"
if (is_primary() || is_nonprimary()) {
op->set_ec_direct_read();
} else {
op->may_read() &&
!(op->may_write() || op->may_cache())) {
// balanced reads; any replica will do
+ // This means "is in acting set"
if (!(is_primary() || is_nonprimary())) {
osd->handle_misdirected_op(this, op);
return;