]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: RGWSyncModulesManager::supports_data_export() returns bool
authorCasey Bodley <cbodley@redhat.com>
Tue, 11 Feb 2020 13:47:53 +0000 (08:47 -0500)
committerCasey Bodley <cbodley@redhat.com>
Thu, 13 Feb 2020 20:39:01 +0000 (15:39 -0500)
callers were expecting a boolean return value. just return false if the
request module isn't found

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_sync_module.h

index dfab8ee0e426fb5372c7449b4a338c2d4c67ab12..c46d5fccae13a9b79be791f6cc7a5767dce90485 100644 (file)
@@ -110,13 +110,13 @@ public:
   }
 
 
-  int supports_data_export(const string& name) {
+  bool supports_data_export(const string& name) {
     RGWSyncModuleRef module;
     if (!get_module(name, &module)) {
-      return -ENOENT;
+      return false;
     }
 
-    return module.get()->supports_data_export();
+    return module->supports_data_export();
   }
 
   int create_instance(CephContext *cct, const string& name, const JSONFormattable& config, RGWSyncModuleInstanceRef *instance) {