]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: fix miss get ret in STSService::storeARN
authorTianshan Qu <tianshan@xsky.com>
Thu, 13 Jun 2019 09:46:49 +0000 (17:46 +0800)
committerTianshan Qu <tianshan@xsky.com>
Sun, 16 Jun 2019 03:35:33 +0000 (11:35 +0800)
Fixes: http://tracker.ceph.com/issues/40386
Signed-off-by: Tianshan Qu <tianshan@xsky.com>
src/rgw/rgw_sts.cc

index 6ccd3a7e447799eedd804c2f0c3b245a169d3472..80daa04cbbcaf61c18773e0a9a78e4347e7bc558 100644 (file)
@@ -277,7 +277,7 @@ int STSService::storeARN(string& arn)
   info.assumed_role_arn = arn;
 
   RGWObjVersionTracker objv_tracker;
-  if (rgw_store_user_info(store, info, &info, &objv_tracker, real_time(),
+  if (ret = rgw_store_user_info(store, info, &info, &objv_tracker, real_time(),
           false); ret < 0) {
     return -ERR_INTERNAL_ERROR;
   }