New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rgw structures rework #11485
rgw structures rework #11485
Commits on Mar 9, 2017
-
rgw: introduce rgw_pool, rgw_raw_obj
Pools are represented by rgw_pool (and not rgw_bucket anymore), and we use rgw_raw_obj to reference rados objs and all 'system' objects (vs rgw_obj that is used for rgw objects). Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
-
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
-
rgw: more fixes and adjustments following rgw_pool, rgw_raw_obj
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
-
rgw: remove unneeded virtual declarations
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
-
rgw: decode rgw_raw_obj as rgw_obj when it's old object
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
-
rgw: use rgw_raw_obj in manifest code
This drags in multiple related changes that are needed in order to support that. Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
-
rgw: simple manifest compaction
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
-
rgw: implicit rgw_bucket placement, manifest uses rgw_raw_obj
Two main changes here: 1. Newly created rgw_bucket does not have a predetermined placement pools assigned to it. The placement_id param in the objects themselves points at where the data is located. This affects object's tail location, head is located where the bucket instance's placement rule points at. 2. Modify object manifest to use rgw_raw_obj instead of rgw_obj. Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
-
test/rgw: extend obj, manifest unitests
Test rgw_raw_obj and upgrade of old rgw_obj, rgw_bucket and old manifest. Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
-
got broken through the rgw_bucket cleanup related work Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
-
Instead of storing the oid and the name, just store the name and calculate it when needed (same goes to locator). Also give more coherent names to the various fields. Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
-
rgw: add rgw_obj_index_key, kill RGWObjEnt
Use rgw_obj_index_key to represent entries in bucket index (typedef of cls_rgw_obj_key). Get rid of RGWObjEnt, it was duplicate of rgw_bucket_dir_entry anyway. Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
-
rgw: keep rgw_obj key info in rgw_obj_key field
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
-
rgw: fix ECANCELED handling in rgw_get_system_obj()
Fixes: http://tracker.ceph.com/issues/17996 Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
-
cls/version: add more useful logging
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
-
rgw: move placement rule out of rgw_bucket
Bucket's placement rule is in the bucket instance's info. Object's placement rule is in the manifest Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
-
rgw: compilation and other fixes following rebase
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
-
rgw: add namespace to rgw_pool
add a namespace field to the rgw_pool struct Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
-
Use rgw_pool all around, and replace librados::create_ioctx() with helper that also sets the namespace. Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
-
rgw: modify default pools to use namespaces
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
-
Fix crash due to code cleanup. Changes scope of obj ref. Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
-
rgw_admin: remove broken check
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
-
rgw: metadata put of bucket instance sets bucket_id
Need to parse the bucket id off the entry and then set it on the bucket struct. Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
-
rgw: get_obj_state() checks for empty oids
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
-
rgw: new rest api to retrieve object layout
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
-
rgw: more fixes following rebase
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
-
qa/tasks/radosgw_admin: adjust test to new bucket structure
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
-
rgw: fix crash when listing objects via swift
Fixes: http://tracker.ceph.com/issues/19249 Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>