From edffb0b76f757b798570f6e5162c3c05ab59564f Mon Sep 17 00:00:00 2001 From: root Date: Sat, 30 Sep 2017 13:51:47 +0800 Subject: [PATCH] rgw: fix radosgw-admin quota enable return value bug Fixes: http://tracker.ceph.com/issues/21608 Signed-off-by: baixueyu --- src/rgw/rgw_admin.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rgw/rgw_admin.cc b/src/rgw/rgw_admin.cc index 2634af23294..712675a76b8 100644 --- a/src/rgw/rgw_admin.cc +++ b/src/rgw/rgw_admin.cc @@ -7054,9 +7054,9 @@ next: max_size, max_objects, have_max_size, have_max_objects); } else if (!user_id.empty()) { if (quota_scope == "bucket") { - set_user_bucket_quota(opt_cmd, user, user_op, max_size, max_objects, have_max_size, have_max_objects); + return set_user_bucket_quota(opt_cmd, user, user_op, max_size, max_objects, have_max_size, have_max_objects); } else if (quota_scope == "user") { - set_user_quota(opt_cmd, user, user_op, max_size, max_objects, have_max_size, have_max_objects); + return set_user_quota(opt_cmd, user, user_op, max_size, max_objects, have_max_size, have_max_objects); } else { cerr << "ERROR: invalid quota scope specification. Please specify either --quota-scope=bucket, or --quota-scope=user" << std::endl; return EINVAL; -- 2.47.3