]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
test/fio: fix a compiler error.
authorJianpeng Ma <jianpeng.ma@intel.com>
Tue, 30 Apr 2019 05:48:47 +0000 (13:48 +0800)
committerJianpeng Ma <jianpeng.ma@intel.com>
Tue, 30 Apr 2019 05:48:47 +0000 (13:48 +0800)
Met the following bug when -DWITH_FIO=ON:
/home/src/test/fio/fio_ceph_messenger.cc:217:5: error: â€˜require_authorizer’ was not declared in this scope
     require_authorizer = false;
This bug introduce by f10660e84f85116b9 which omit this.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
src/test/fio/fio_ceph_messenger.cc

index 99e3bd2b09dd409a20b208ff05210f1b6e17dc99..7b1984694fb07bca52158db5a790303b95587e62 100644 (file)
@@ -214,7 +214,6 @@ public:
   FioDispatcher(struct ceph_msgr_data *data):
     Dispatcher(g_ceph_context),
     m_data(data) {
-    require_authorizer = false;
   }
   bool ms_can_fast_dispatch_any() const override {
     return true;
@@ -311,6 +310,7 @@ static Messenger *create_messenger(struct ceph_msgr_options *o)
   }
   msgr->set_auth_client(g_dummy_auth);
   msgr->set_auth_server(g_dummy_auth);
+  msgr->set_require_authorizer(false);
   msgr->start();
 
   return msgr;