]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw-admin: pass object by reference
authorYehuda Sadeh <yehuda@inktank.com>
Thu, 27 Sep 2012 22:24:45 +0000 (15:24 -0700)
committerYehuda Sadeh <yehuda@inktank.com>
Mon, 8 Oct 2012 22:12:48 +0000 (15:12 -0700)
Large object should be passed by reference (coverity fix).

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
src/rgw/rgw_admin.cc

index ad58f78807bb6358a0fec2fabb654bf5fcec7c29..dedd4465b20781d474b92e50e86f02e9024d2ae9 100644 (file)
@@ -454,7 +454,7 @@ done:
   return ret;
 }
 
-static void remove_old_indexes(RGWUserInfo& old_info, RGWUserInfo new_info)
+static void remove_old_indexes(RGWUserInfo& old_info, RGWUserInfo& new_info)
 {
   int ret;
   bool success = true;