#define ERR_TOO_SMALL 2022
#define ERR_NOT_FOUND 2023
#define ERR_PERMANENT_REDIRECT 2024
+#define ERR_LOCKED 2025
#define ERR_USER_SUSPENDED 2100
#define ERR_INTERNAL_ERROR 2200
{ ERR_PRECONDITION_FAILED, 412, "PreconditionFailed" },
{ ERANGE, 416, "InvalidRange" },
{ ERR_UNPROCESSABLE_ENTITY, 422, "UnprocessableEntity" },
+ { ERR_LOCKED, 423, "Locked" },
{ ERR_INTERNAL_ERROR, 500, "InternalError" },
};
}
utime_t time(dur, 0);
http_ret = meta_log->lock_exclusive(shard_id, time, zone_id, locker_id);
+ if (http_ret == -EBUSY)
+ http_ret = -ERR_LOCKED;
}
void RGWOp_MDLog_Unlock::execute() {
}
utime_t time(dur, 0);
http_ret = store->data_log->lock_exclusive(shard_id, time, zone_id, locker_id);
+ if (http_ret == -EBUSY)
+ http_ret = -ERR_LOCKED;
}
void RGWOp_DATALog_Unlock::execute() {
}
utime_t time(dur, 0);
http_ret = store->meta_mgr->lock_exclusive(metadata_key, time, lock_id);
+ if (http_ret == -EBUSY)
+ http_ret = -ERR_LOCKED;
}
void RGWOp_Metadata_Unlock::execute() {