]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: unitests and other tools fixes
authorYehuda Sadeh <yehuda@redhat.com>
Wed, 19 Jun 2019 02:04:02 +0000 (19:04 -0700)
committerCasey Bodley <cbodley@redhat.com>
Mon, 29 Jul 2019 19:20:49 +0000 (15:20 -0400)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/librgw.cc
src/rgw/librgw_admin_user.cc
src/rgw/rgw_object_expirer.cc
src/test/test_rgw_admin_log.cc

index cee704550741dc839fd9b9ac428aee46fdbb3f0b..155ff857eaa624df13f236303cd7cfb46ca62e15 100644 (file)
@@ -550,8 +550,6 @@ namespace rgw {
     ldh->init();
     ldh->bind();
 
-    rgw_user_init(store);
-    rgw_bucket_init(store->meta_mgr);
     rgw_log_usage_init(g_ceph_context, store);
 
     // XXX ex-RGWRESTMgr_lib, mgr->set_logging(true)
@@ -629,7 +627,7 @@ namespace rgw {
 
   int RGWLibIO::set_uid(RGWRados *store, const rgw_user& uid)
   {
-    int ret = rgw_get_user_info_by_uid(store, uid, user_info, NULL);
+    int ret = store->ctl.user->get_info_by_uid(uid, &user_info);
     if (ret < 0) {
       derr << "ERROR: failed reading user info: uid=" << uid << " ret="
           << ret << dendl;
index 928f04cb3294f711de7b9694f098b4642071671e..9ae8f7032079aad06d4f692633ed9a6a0065726f 100644 (file)
@@ -115,8 +115,6 @@ namespace rgw {
     init_timer.shutdown();
     mutex.Unlock();
 
-    rgw_user_init(store);
-
     init_async_signal_handler();
     register_async_signal_handler(SIGUSR1, handle_sigterm);
 
index 93258b4208b72dd68c93bfcdafdfe557277d5355..07b917e6e85dc9c3c908f190b48cfe7e71715210 100644 (file)
@@ -87,9 +87,6 @@ int main(const int argc, const char **argv)
     return EIO;
   }
 
-  rgw_user_init(store);
-  rgw_bucket_init(store->meta_mgr);
-
   /* Guard to not forget about closing the rados store. */
   StoreDestructor store_dtor(store);
 
index 4204ee5c4d49f68b6bf57ad2436915871a70786b..9809701864615f8a8e0a8f4345df2b2aec88ca04 100644 (file)
@@ -33,6 +33,7 @@ extern "C"{
 #include "common/Finisher.h"
 #include "global/global_init.h"
 #include "rgw/rgw_common.h"
+#include "rgw/rgw_mdlog.h"
 #include "rgw/rgw_bucket.h"
 #include "rgw/rgw_rados.h"
 #include "include/utime.h"