diff options
author | Yehuda Sadeh <yehuda@inktank.com> | 2014-01-13 23:19:27 +0100 |
---|---|---|
committer | Yehuda Sadeh <yehuda@inktank.com> | 2014-01-24 19:28:53 +0100 |
commit | 7545177ab765c8e4f83bfcad6b056a70c0f3dfad (patch) | |
tree | 8b023de6ee46ceec0e9569742da4b109e3acb4da /src/cls/user/cls_user_client.h | |
parent | radosgw-admin: dump header when requested for user stats (diff) | |
download | ceph-7545177ab765c8e4f83bfcad6b056a70c0f3dfad.tar.xz ceph-7545177ab765c8e4f83bfcad6b056a70c0f3dfad.zip |
rgw, cls_user: fix bucket creation
There's a single op to create and update the user bucket info, however,
the cases differ a bit, as we only need to guard against ENOENT if we're
updating the info.
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Diffstat (limited to 'src/cls/user/cls_user_client.h')
-rw-r--r-- | src/cls/user/cls_user_client.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cls/user/cls_user_client.h b/src/cls/user/cls_user_client.h index 34f8278a41c..62e96294997 100644 --- a/src/cls/user/cls_user_client.h +++ b/src/cls/user/cls_user_client.h @@ -19,7 +19,7 @@ public: * user objclass */ -void cls_user_set_buckets(librados::ObjectWriteOperation& op, list<cls_user_bucket_entry>& entries); +void cls_user_set_buckets(librados::ObjectWriteOperation& op, list<cls_user_bucket_entry>& entries, bool add); void cls_user_complete_stats_sync(librados::ObjectWriteOperation& op); void cls_user_remove_bucket(librados::ObjectWriteOperation& op, const cls_user_bucket& bucket); void cls_user_bucket_list(librados::ObjectReadOperation& op, |