From 4dfa59b9107db42f04645ad6728dd50135055a3a Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Tue, 11 Feb 2020 08:47:53 -0500 Subject: [PATCH] rgw: RGWSyncModulesManager::supports_data_export() returns bool callers were expecting a boolean return value. just return false if the request module isn't found Signed-off-by: Casey Bodley --- src/rgw/rgw_sync_module.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rgw/rgw_sync_module.h b/src/rgw/rgw_sync_module.h index dfab8ee0e42..c46d5fccae1 100644 --- a/src/rgw/rgw_sync_module.h +++ b/src/rgw/rgw_sync_module.h @@ -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) { -- 2.39.5