summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* rgw: share object tag and index tagwip-rgw-bucketlogYehuda Sadeh2013-04-153-52/+12
| | | | | | | | | | | object tag is now being written to the index, so that both object and index hold the same tag. This is needed so that we could know whether object and index refer to the same instance. Also cleanup old legacy code that did atomic ops through cloning objects. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: bucket index log fixesYehuda Sadeh2013-04-123-17/+25
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* radosgw-admin: bilog list gets marker and max-entries paramsYehuda Sadeh2013-04-121-5/+16
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* radosgw-admin, cls_rgw: list bucket index logYehuda Sadeh2013-04-119-19/+347
| | | | | | a new radosgw-admin command to list bucket index log. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* cls_rgw: bucket index versioningYehuda Sadeh2013-04-116-39/+100
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: fix broken radosgw-admin user * commandsYehuda Sadeh2013-04-101-0/+1
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* cls_rgw, rgw: bucket index logs modificationsYehuda Sadeh2013-04-1010-75/+334
| | | | | | | | | | | Add a log to the bucket index. This commit also ties the "epoch" version that is kept per index entry to the relevant ceph pool id. This fixes the dependency on the specific pool where the object was created, and makes it possible to copy rgw data pools. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: metadata rmwip-rgw-zone-3Yehuda Sadeh2013-03-225-26/+239
| | | | | | | Still needs to fix the way we remove user entries; need to take different path, similar to put_entry()) Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: cls_log_trim boundary changeYehuda Sadeh2013-03-221-1/+1
| | | | | | end_time is not inclusive Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: show metadata log through radosgw-adminYehuda Sadeh2013-03-224-28/+154
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: use new cls_log listing interfaceYehuda Sadeh2013-03-223-0/+29
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* cls_log: adjust listing apiYehuda Sadeh2013-03-225-25/+109
| | | | | | Listing api now also gets end time and a marker. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: log user operationsYehuda Sadeh2013-03-228-5/+95
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: track object versions between reads and writesYehuda Sadeh2013-03-2210-89/+200
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: initialize meta_mgr earlierYehuda Sadeh2013-03-221-2/+2
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* test_cls_log: remove warningYehuda Sadeh2013-03-221-5/+0
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* cls_log: extend unitestYehuda Sadeh2013-03-221-22/+212
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* cls_log: more fixesYehuda Sadeh2013-03-221-8/+12
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* cls_log: unitestYehuda Sadeh2013-03-222-0/+133
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* cls_log: fixes, other adjustmentsYehuda Sadeh2013-03-223-9/+33
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* objclass: provide new api for unique subop versioningYehuda Sadeh2013-03-222-0/+34
| | | | | | | | | | We need to be able to generate a unique identifier for each subop. This can be useful e.g., if we want to keep multiple omap data entries indexed by the same key. The unique id is being generated by the current object id and the current osd subop count. For write operations it's unique. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* osd: keep track of current osd subop numYehuda Sadeh2013-03-222-1/+4
| | | | | | | This can be used later to generate unique subop versions in compound write operations. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* cls_log: trim works in chunks, returns -ENODATA when doneYehuda Sadeh2013-03-223-1/+28
| | | | | | | Also created a higher level interface that iterates until done. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* cls_log: a class to handle info sorted by timestampYehuda Sadeh2013-03-226-0/+427
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: metadata list user, only show uidsYehuda Sadeh2013-03-221-2/+18
| | | | | | don't show unrelated object names Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: user metadata updates also key versionYehuda Sadeh2013-03-227-22/+23
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: add top level metadata handlerYehuda Sadeh2013-03-223-2/+64
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: put metadata, other cleanupsYehuda Sadeh2013-03-226-17/+141
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: metadata manager, api to list keysYehuda Sadeh2013-03-226-11/+136
| | | | | | Also, implement key listing for user metadata. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: metadata set/get infrastructureYehuda Sadeh2013-03-2210-7/+218
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: rgw_get_system_obj() can return obj_versionYehuda Sadeh2013-03-228-50/+52
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* cls_version: add cls_version_read(ObjectReadOpeation&)Yehuda Sadeh2013-03-223-1/+37
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* librados: add two more ObjectOperation::exec()Yehuda Sadeh2013-03-223-2/+53
| | | | | | | - one that also gets out bufferlist and ret value pointer - one that gets a callback context Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: start tying metadata objs to version objclassYehuda Sadeh2013-03-226-30/+118
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* cls_version: unitestYehuda Sadeh2013-03-222-0/+293
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* cls_version: various fixesYehuda Sadeh2013-03-223-6/+8
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* cls_version: create a new objclassYehuda Sadeh2013-03-228-1/+562
| | | | | | New objclass to track and modify objects versions. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: fix json decoding of rgw_bucketYehuda Sadeh2013-03-223-15/+23
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: regionmap updateYehuda Sadeh2013-03-226-14/+145
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: get/set region mapYehuda Sadeh2013-03-223-0/+94
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: zone list, setup changesYehuda Sadeh2013-03-223-62/+132
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* common/ceph_parser.cc: cleanupYehuda Sadeh2013-03-221-2/+0
| | | | | | remove extra logging to stdout Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: set region info, default regionYehuda Sadeh2013-03-221-1/+49
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: can list regions, show default region infoYehuda Sadeh2013-03-223-29/+141
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: some region/zone related cleanups/fixesYehuda Sadeh2013-03-223-7/+8
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: admin command to show region infoYehuda Sadeh2013-03-223-14/+56
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: derr -> lderrYehuda Sadeh2013-03-221-2/+4
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: region creationYehuda Sadeh2013-03-226-17/+291
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: region management encoding/decoding changesYehuda Sadeh2013-03-223-110/+96
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: define region/zone data structuresYehuda Sadeh2013-03-222-0/+141
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>