diff options
author | Matt Benjamin <mbenjamin@redhat.com> | 2015-10-29 16:49:06 +0100 |
---|---|---|
committer | Matt Benjamin <mbenjamin@redhat.com> | 2016-02-12 18:05:23 +0100 |
commit | 290b06a91c1a7d619f8ee83a9ee9e86f3e7ee132 (patch) | |
tree | 06f82b28de5508dadbb5091e07fb6da0e04b00bb /src/test/librgw_file_gp.cc | |
parent | librgw: dispatch RGWDeleteRequest in object branch in rgw_unlink(). (diff) | |
download | ceph-290b06a91c1a7d619f8ee83a9ee9e86f3e7ee132.tar.xz ceph-290b06a91c1a7d619f8ee83a9ee9e86f3e7ee132.zip |
librgw: rework library CephContext* and init
Remove duplicated init step. Just reference the global
Ceph context for the library instance(s).
The immediate effect of this is to bring the (correctly initialized)
global context into all call paths, which (e.g.) fixes debug
log prints within subsystems.
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
Diffstat (limited to 'src/test/librgw_file_gp.cc')
-rw-r--r-- | src/test/librgw_file_gp.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/librgw_file_gp.cc b/src/test/librgw_file_gp.cc index e2bc1301a33..bc3d8058d75 100644 --- a/src/test/librgw_file_gp.cc +++ b/src/test/librgw_file_gp.cc @@ -129,7 +129,7 @@ namespace { } TEST(LibRGW, INIT) { - int ret = librgw_create(&rgw, nullptr, saved_args.argc, saved_args.argv); + int ret = librgw_create(&rgw, saved_args.argc, saved_args.argv); ASSERT_EQ(ret, 0); ASSERT_NE(rgw, nullptr); } |