I open the db using OpenForReadOnly
and I want it really just do readonly. But It actually create a lot of log files. How to disable it.
::rocksdb::DB* result;
::rocksdb::Options options;
options.create_if_missing = false;
options.keep_log_file_num = 1;
options.info_log_level = ::rocksdb::InfoLogLevel::FATAL_LEVEL;
options.recycle_log_file_num = 1;
::rocksdb::DB::OpenForReadOnly(options, path, &result);
This is what I tried to disable the log. And it's not working