From 9cf971790ca7fb12f236e14a4b5a396fd1968a56 Mon Sep 17 00:00:00 2001 From: "lu.shasha" Date: Tue, 28 Feb 2017 14:28:38 +0800 Subject: [PATCH] rgw: fix init_bucket_for_sync retcode init_bucket_for_sync error retcode should be negative Signed-off-by: Shasha Lu --- src/rgw/rgw_admin.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_admin.cc b/src/rgw/rgw_admin.cc index 59103a5d68f9a..e6b1eb59e8230 100644 --- a/src/rgw/rgw_admin.cc +++ b/src/rgw/rgw_admin.cc @@ -1717,7 +1717,7 @@ static int init_bucket_for_sync(const string& tenant, const string& bucket_name, int ret = init_bucket(tenant, bucket_name, bucket_id, bucket_info, bucket); if (ret < 0) { cerr << "ERROR: could not init bucket: " << cpp_strerror(-ret) << std::endl; - return -ret; + return ret; } return 0; -- 2.39.5