Actions
Feature #5133
closedrgw: RESTful api to lock/unlock mdlog
% Done:
0%
Source:
Development
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:
Updated by Yehuda Sadeh almost 11 years ago
- Get datalog info
(we'll modify the list metadata log):
GET /admin/log?type=metadata
result:
return a json representation of the datalog information:
{
num_objects = <num>
}
- Lock datalog object
POST /admin/datalog?lock&id=<shard num>&length=<time in
seconds>&lock_id=<lock id>
lock_id is a user generated string (e.g., agent id)
- Unlock datalog object
POST /admin/datalog?unlock&id=<shard num>&length=<time in
seconds>&lock_id=<lock id>
- list metadata log
this should be done by adding the id param
Actions