diff options
author | Yuri Weinstein <yweinste@redhat.com> | 2023-06-05 17:32:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-05 17:32:51 +0200 |
commit | b2ec2aff8015171b37085fd54a80773d488c08f1 (patch) | |
tree | 1f17925b21d4a05403643113b3f27677ab4f08e3 /src/ceph_mon.cc | |
parent | Merge pull request #51915 from zdover23/wip-doc-2023-06-05-rados-operations-p... (diff) | |
parent | install-deps: remove leveldb pkg (diff) | |
download | ceph-b2ec2aff8015171b37085fd54a80773d488c08f1.tar.xz ceph-b2ec2aff8015171b37085fd54a80773d488c08f1.zip |
Merge pull request #50651 from rosinL/cleanup
Cleanup the LevelDB residue
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Diffstat (limited to 'src/ceph_mon.cc')
-rw-r--r-- | src/ceph_mon.cc | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/src/ceph_mon.cc b/src/ceph_mon.cc index c1b30b70bb9..3f269ed8c6a 100644 --- a/src/ceph_mon.cc +++ b/src/ceph_mon.cc @@ -272,25 +272,14 @@ int main(int argc, const char **argv) // We need to specify some default values that may be overridden by the // user, that are specific to the monitor. The options we are overriding - // are also used on the OSD (or in any other component that uses leveldb), - // so changing the global defaults is not an option. + // are also used on the OSD, so changing the global defaults is not an option. // This is not the prettiest way of doing this, especially since it has us // having a different place defining default values, but it's not horribly // wrong enough to prevent us from doing it :) // // NOTE: user-defined options will take precedence over ours. - // - // leveldb_write_buffer_size = 32*1024*1024 = 33554432 // 32MB - // leveldb_cache_size = 512*1024*1204 = 536870912 // 512MB - // leveldb_block_size = 64*1024 = 65536 // 64KB - // leveldb_compression = false - // leveldb_log = "" + map<string,string> defaults = { - { "leveldb_write_buffer_size", "33554432" }, - { "leveldb_cache_size", "536870912" }, - { "leveldb_block_size", "65536" }, - { "leveldb_compression", "false"}, - { "leveldb_log", "" }, { "keyring", "$mon_data/keyring" }, }; @@ -589,8 +578,6 @@ int main(int argc, const char **argv) } } - // we fork early to prevent leveldb's environment static state from - // screwing us over Preforker prefork; if (!(flags & CINIT_FLAG_NO_DAEMON_ACTIONS)) { if (global_init_prefork(g_ceph_context) >= 0) { |