From b7f20ae4102af7addee01f632f91c19a21bda44c Mon Sep 17 00:00:00 2001 From: JiaShuo Date: Fri, 10 Jan 2020 10:51:00 +0800 Subject: [PATCH] fix --- .../replication/test/meta_test/unit_test/meta_test_base.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/dist/replication/test/meta_test/unit_test/meta_test_base.h b/src/dist/replication/test/meta_test/unit_test/meta_test_base.h index 3483e77b5c..9145fe104d 100644 --- a/src/dist/replication/test/meta_test/unit_test/meta_test_base.h +++ b/src/dist/replication/test/meta_test/unit_test/meta_test_base.h @@ -22,7 +22,9 @@ class meta_test_base : public testing::Test _ms = make_unique(); _ms->_failure_detector.reset(new meta_server_failure_detector(_ms.get())); _ms->_balancer.reset(utils::factory_store::create( - _ms->_meta_opts._lb_opts.server_load_balancer_type.c_str(), PROVIDER_TYPE_MAIN, this)); + _ms->_meta_opts._lb_opts.server_load_balancer_type.c_str(), + PROVIDER_TYPE_MAIN, + _ms.get())); ASSERT_EQ(_ms->remote_storage_initialize(), ERR_OK); _ms->initialize_duplication_service(); ASSERT_TRUE(_ms->_dup_svc);