rocksdb/options
mrambacher ab7f7c9e49 Allow WAL dir to change with db dir (#8582)
Summary:
Prior to this change, the "wal_dir"  DBOption would always be set (defaults to dbname) when the DBOptions were sanitized.  Because of this setitng in the options file, it was not possible to rename/relocate a database directory after it had been created and use the existing options file.

After this change, the "wal_dir" option is only set under specific circumstances.  Methods were added to the ImmutableDBOptions class to see if it is set and if it is set to something other than the dbname.  Additionally, a method was added to retrieve the effective value of the WAL dir (either the option or the dbname/path).

Tests were added to the core and ldb to test that a database could be created and renamed without issue.  Additional tests for various permutations of wal_dir were also added.

Pull Request resolved: https://github.com/facebook/rocksdb/pull/8582

Reviewed By: pdillinger, autopear

Differential Revision: D29881122

Pulled By: mrambacher

fbshipit-source-id: 67d3d033dc8813d59917b0a3fba2550c0efd6dfb
2021-07-30 12:16:44 -07:00
..
cf_options.cc Fix Immutable Customizable Serialization (#8457) 2021-06-28 12:28:28 -07:00
cf_options.h Added static methods for simple types to OptionTypeInfo (#8249) 2021-05-11 16:15:47 -07:00
configurable.cc Allow CreateFromString to work on complex URIs (#8547) 2021-07-16 15:05:45 -07:00
configurable_helper.h Add customizable_util.h to the public API (#8301) 2021-06-29 09:08:57 -07:00
configurable_test.cc Move RegisterOptions into the Configurable API (#8223) 2021-04-26 03:13:24 -07:00
configurable_test.h Move RegisterOptions into the Configurable API (#8223) 2021-04-26 03:13:24 -07:00
customizable.cc Make EventListener into a Customizable Class (#8473) 2021-07-27 07:47:02 -07:00
customizable_test.cc Make EventListener into a Customizable Class (#8473) 2021-07-27 07:47:02 -07:00
db_options.cc Allow WAL dir to change with db dir (#8582) 2021-07-30 12:16:44 -07:00
db_options.h Allow WAL dir to change with db dir (#8582) 2021-07-30 12:16:44 -07:00
options.cc Limit buffering for collecting samples for compression dictionary (#7970) 2021-02-19 14:09:54 -08:00
options_helper.cc Allow CreateFromString to work on complex URIs (#8547) 2021-07-16 15:05:45 -07:00
options_helper.h Added static methods for simple types to OptionTypeInfo (#8249) 2021-05-11 16:15:47 -07:00
options_parser.cc Refactor: add LineFileReader and Status::MustCheck (#8026) 2021-03-09 20:12:38 -08:00
options_parser.h Bring the Configurable options together (#5753) 2020-09-14 17:01:01 -07:00
options_settable_test.cc Cache warming data blocks during flush (#8242) 2021-06-17 21:56:47 -07:00
options_test.cc Make EventListener into a Customizable Class (#8473) 2021-07-27 07:47:02 -07:00