diff options
author | Sage Weil <sage@redhat.com> | 2017-05-12 04:52:23 +0200 |
---|---|---|
committer | John Spray <john.spray@redhat.com> | 2017-07-21 12:27:22 +0200 |
commit | 8463894575958387894bd5dd45d7f9700e51dcd0 (patch) | |
tree | 700b644bf9d02882bdc27af92747a4abdf2b3ae0 /src/test/librados | |
parent | ceph-syn: parse --num-client locally; remove global option (diff) | |
download | ceph-8463894575958387894bd5dd45d7f9700e51dcd0.tar.xz ceph-8463894575958387894bd5dd45d7f9700e51dcd0.zip |
common: remove max_open_files config option
The only user is init-ceph, and it can get at it via ceph-conf without
the option being declared here.
Signed-off-by: Sage Weil <sage@redhat.com>
Diffstat (limited to 'src/test/librados')
-rw-r--r-- | src/test/librados/librados_config.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/librados/librados_config.cc b/src/test/librados/librados_config.cc index 81c0465a38f..482482fc2a0 100644 --- a/src/test/librados/librados_config.cc +++ b/src/test/librados/librados_config.cc @@ -27,12 +27,12 @@ TEST(LibRadosConfig, SimpleSet) { int ret = rados_create(&cl, NULL); ASSERT_EQ(ret, 0); - ret = rados_conf_set(cl, "max_open_files", "21"); + ret = rados_conf_set(cl, "leveldb_max_open_files", "21"); ASSERT_EQ(ret, 0); char buf[128]; memset(buf, 0, sizeof(buf)); - ret = rados_conf_get(cl, "max_open_files", buf, sizeof(buf)); + ret = rados_conf_get(cl, "leveldb_max_open_files", buf, sizeof(buf)); ASSERT_EQ(ret, 0); ASSERT_EQ(string("21"), string(buf)); @@ -44,7 +44,7 @@ TEST(LibRadosConfig, ArgV) { int ret = rados_create(&cl, NULL); ASSERT_EQ(ret, 0); - const char *argv[] = { "foo", "--max-open-files", "2", + const char *argv[] = { "foo", "--leveldb-max-open-files", "2", "--keyfile", "/tmp/my-keyfile", NULL }; size_t argc = (sizeof(argv) / sizeof(argv[0])) - 1; rados_conf_parse_argv(cl, argc, argv); @@ -56,7 +56,7 @@ TEST(LibRadosConfig, ArgV) { ASSERT_EQ(string("/tmp/my-keyfile"), string(buf)); memset(buf, 0, sizeof(buf)); - ret = rados_conf_get(cl, "max_open_files", buf, sizeof(buf)); + ret = rados_conf_get(cl, "leveldb_max_open_files", buf, sizeof(buf)); ASSERT_EQ(ret, 0); ASSERT_EQ(string("2"), string(buf)); |