rocksdb/options
mrambacher 3efc6fd641 Make Configurable/Customizable options copyable (#8704)
Summary:
The atomic variable "is_prepared_" was keeping Configurable objects from being copy-constructed.  Removed the atomic to allow copies.

Since the variable is only changed from false to true (and never back), there is no reason it had to be atomic.

Added tests that simple Configurable and Customizable objects can be put on the stack and copied.

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

Reviewed By: anand1976

Differential Revision: D30530526

Pulled By: ltamasi

fbshipit-source-id: 4dd4439b3e5ad7fa396573d0b25d9fb709160576
2021-08-25 17:51:50 -07:00
..
cf_options.cc Move old files to warm tier in FIFO compactions (#8310) 2021-08-09 12:51:14 -07:00
cf_options.h Added static methods for simple types to OptionTypeInfo (#8249) 2021-05-11 16:15:47 -07:00
configurable_helper.h Fix some minor issues in the Customizable infrastructure (#8566) 2021-08-19 10:10:47 -07:00
configurable_test.cc Make Configurable/Customizable options copyable (#8704) 2021-08-25 17:51:50 -07:00
configurable_test.h Move RegisterOptions into the Configurable API (#8223) 2021-04-26 03:13:24 -07:00
configurable.cc Make Configurable/Customizable options copyable (#8704) 2021-08-25 17:51:50 -07:00
customizable_test.cc Make Configurable/Customizable options copyable (#8704) 2021-08-25 17:51:50 -07:00
customizable.cc Fix some minor issues in the Customizable infrastructure (#8566) 2021-08-19 10:10:47 -07:00
db_options.cc Re-add retired mempurge flag definitions for legacy-options-file temporary support. (#8650) 2021-08-11 16:07:30 -07:00
db_options.h Memtable sampling for mempurge heuristic. (#8628) 2021-08-10 18:09:03 -07:00
options_helper.cc Fix some minor issues in the Customizable infrastructure (#8566) 2021-08-19 10:10:47 -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 Move old files to warm tier in FIFO compactions (#8310) 2021-08-09 12:51:14 -07:00
options_test.cc Make Configurable/Customizable options copyable (#8704) 2021-08-25 17:51:50 -07:00
options.cc Limit buffering for collecting samples for compression dictionary (#7970) 2021-02-19 14:09:54 -08:00