if (info->session) {
int r = recalc_op_target(o);
- if (r == RECALC_OP_TARGET_POOL_DISAPPEARED) {
+ if (r == RECALC_OP_TARGET_POOL_DNE) {
linger_check_for_latest_map(info);
}
}
need_resend_linger.push_back(op);
linger_cancel_map_check(op);
break;
- case RECALC_OP_TARGET_POOL_DISAPPEARED:
+ case RECALC_OP_TARGET_POOL_DNE:
linger_check_for_latest_map(op);
break;
}
need_resend[op->tid] = op;
op_cancel_map_check(op);
break;
- case RECALC_OP_TARGET_POOL_DISAPPEARED:
+ case RECALC_OP_TARGET_POOL_DNE:
op_check_for_latest_map(op);
break;
}
s->ops.push_back(&op->session_item);
} else {
int r = recalc_op_target(op);
- check_for_latest_map = (r == RECALC_OP_TARGET_POOL_DISAPPEARED);
+ check_for_latest_map = (r == RECALC_OP_TARGET_POOL_DNE);
num_homeless_ops++; // initially!
}
if (op->oid.name.length()) {
int ret = osdmap->object_locator_to_pg(op->oid, op->oloc, pgid);
if (ret == -ENOENT)
- return RECALC_OP_TARGET_POOL_DISAPPEARED;
+ return RECALC_OP_TARGET_POOL_DNE;
}
osdmap->pg_to_acting_osds(pgid, acting);
pg_t pgid;
int ret = osdmap->object_locator_to_pg(linger_op->oid, linger_op->oloc, pgid);
if (ret == -ENOENT) {
- return RECALC_OP_TARGET_POOL_DISAPPEARED;
+ return RECALC_OP_TARGET_POOL_DNE;
}
osdmap->pg_to_acting_osds(pgid, acting);
enum recalc_op_target_result {
RECALC_OP_TARGET_NO_ACTION = 0,
RECALC_OP_TARGET_NEED_RESEND,
- RECALC_OP_TARGET_POOL_DISAPPEARED,
+ RECALC_OP_TARGET_POOL_DNE,
};
int recalc_op_target(Op *op);
bool recalc_linger_op_target(LingerOp *op);