summaryrefslogtreecommitdiffstats
path: root/src/cls/user/cls_user_client.h
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@inktank.com>2014-01-13 23:19:27 +0100
committerYehuda Sadeh <yehuda@inktank.com>2014-01-24 19:28:53 +0100
commit7545177ab765c8e4f83bfcad6b056a70c0f3dfad (patch)
tree8b023de6ee46ceec0e9569742da4b109e3acb4da /src/cls/user/cls_user_client.h
parentradosgw-admin: dump header when requested for user stats (diff)
downloadceph-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.h2
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,