return -EINVAL;
}
- string obj_index;
- get_index_by_object(op.object, op.op_id, obj_index);
-
- bufferlist bl;
- int rc = cls_cxx_map_get_val(hctx, obj_index, &bl);
- if (rc < 0) {
- CLS_LOG(0, "could not find entry %s", obj_index.c_str());
- return rc;
- }
cls_statelog_entry entry;
- rc = get_existing_entry(hctx, op.client_id, op.op_id, op.object, entry);
+ int rc = get_existing_entry(hctx, op.client_id, op.op_id, op.object, entry);
if (rc < 0)
return rc;
void cls_statelog_check_state(librados::ObjectOperation& op, const string& client_id, const string& op_id, const string& object, uint32_t state)
{
bufferlist inbl;
- bufferlist outbl;
cls_statelog_check_state_op call;
call.client_id = client_id;
call.op_id = op_id;