Sagar Vemuri
f0804db7f7
Make FIFO compaction options dynamically configurable
...
Summary:
ColumnFamilyOptions::compaction_options_fifo and all its sub-fields can be set dynamically now.
Some of the ways in which the fifo compaction options can be set are:
- `SetOptions({{"compaction_options_fifo", "{max_table_files_size=1024}"}})`
- `SetOptions({{"compaction_options_fifo", "{ttl=600;}"}})`
- `SetOptions({{"compaction_options_fifo", "{max_table_files_size=1024;ttl=600;}"}})`
- `SetOptions({{"compaction_options_fifo", "{max_table_files_size=51;ttl=49;allow_compaction=true;}"}})`
Most of the code has been made generic enough so that it could be reused later to make universal options (and other such nested defined-types) dynamic with very few lines of parsing/serializing code changes.
Introduced a few new functions like `ParseStruct`, `SerializeStruct` and `GetStringFromStruct`.
The duplicate code in `GetStringFromDBOptions` and `GetStringFromColumnFamilyOptions` has been moved into `GetStringFromStruct`. So they become just simple wrappers now.
Closes https://github.com/facebook/rocksdb/pull/3006
Differential Revision: D6058619
Pulled By: sagar0
fbshipit-source-id: 1e8f78b3374ca5249bb4f3be8a6d3bb4cbc52f92
2017-10-19 15:26:36 -07:00
..
2017-10-06 10:41:53 -07:00
2017-10-06 10:41:53 -07:00
2017-09-14 14:18:59 -07:00
2017-09-27 17:49:45 -07:00
2017-10-17 11:13:19 -07:00
2017-10-11 15:12:31 -07:00
2017-10-18 12:32:28 -07:00
2017-07-21 18:26:26 -07:00
2017-10-05 18:11:43 -07:00
2017-07-21 18:26:26 -07:00
2017-08-19 14:10:08 -07:00
2017-10-06 10:41:53 -07:00
2017-10-06 10:41:53 -07:00
2017-10-06 10:41:53 -07:00
2017-07-21 18:26:26 -07:00
2017-10-06 10:41:53 -07:00
2017-10-17 11:13:19 -07:00
2017-10-06 10:41:53 -07:00
2017-10-19 15:26:36 -07:00
2017-08-16 18:42:33 -07:00
2017-07-15 16:11:23 -07:00
2017-10-19 15:26:36 -07:00
2017-09-13 15:41:38 -07:00
2017-08-15 13:02:19 -07:00
2017-07-15 16:11:23 -07:00
2017-07-21 18:26:26 -07:00
2017-08-09 15:58:13 -07:00
2017-08-11 12:29:14 -07:00
2017-10-19 10:57:12 -07:00
2017-10-19 10:57:12 -07:00
2017-10-17 08:57:09 -07:00
2017-07-21 18:26:26 -07:00
2017-07-21 18:26:26 -07:00
2017-10-19 10:57:12 -07:00
2017-09-13 15:41:38 -07:00
2017-07-21 18:26:26 -07:00
2017-07-15 16:11:23 -07:00
2017-07-18 11:56:57 -07:00
2017-07-21 18:26:26 -07:00
2017-10-19 10:57:12 -07:00
2017-10-10 13:12:37 -07:00
2017-10-05 18:11:43 -07:00
2017-09-28 16:56:45 -07:00
2017-10-18 09:11:50 -07:00
2017-10-09 17:15:28 -07:00
2017-07-21 18:26:26 -07:00
2017-10-06 14:26:45 -07:00
2017-10-19 10:57:12 -07:00
2017-10-18 09:11:50 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-07-26 21:11:47 -07:00
2017-10-09 17:15:28 -07:00
2017-10-19 10:57:12 -07:00
2017-10-09 17:15:28 -07:00
2017-10-17 22:12:00 -07:00
2017-07-15 16:11:23 -07:00
2017-07-21 18:26:26 -07:00
2017-09-28 15:58:49 -07:00
2017-10-19 15:26:36 -07:00
2017-07-21 18:26:26 -07:00
2017-08-29 18:41:35 -07:00
2017-07-21 18:26:26 -07:00
2017-07-15 16:11:23 -07:00
2017-09-28 18:17:30 -07:00
2017-07-21 18:26:26 -07:00
2017-10-17 08:57:09 -07:00
2017-10-19 10:57:12 -07:00
2017-07-21 18:26:26 -07:00
2017-10-19 15:26:36 -07:00
2017-08-16 18:42:33 -07:00
2017-09-22 17:26:36 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-10-03 09:11:23 -07:00
2017-10-03 09:11:23 -07:00
2017-07-21 18:26:26 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-07-28 16:27:16 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-07-21 18:26:26 -07:00
2017-07-21 18:26:26 -07:00
2017-07-21 18:26:26 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-10-06 10:41:53 -07:00
2017-10-06 10:41:53 -07:00
2017-10-06 10:41:53 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-09-21 17:56:38 -07:00
2017-07-21 18:26:26 -07:00
2017-09-07 18:26:18 -07:00
2017-09-07 18:26:18 -07:00
2017-10-05 18:11:43 -07:00
2017-07-21 18:26:26 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-10-19 10:57:12 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-07-21 18:26:26 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-07-21 18:26:26 -07:00
2017-07-15 16:11:23 -07:00
2017-10-17 17:28:11 -07:00
2017-10-17 17:28:11 -07:00
2017-10-10 21:26:11 -07:00
2017-10-03 09:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-08-16 23:42:00 -07:00
2017-08-16 23:42:00 -07:00
2017-07-15 16:11:23 -07:00
2017-07-21 18:26:26 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-07-21 18:26:26 -07:00
2017-07-21 18:26:26 -07:00
2017-07-15 16:11:23 -07:00
2017-09-14 15:41:49 -07:00
2017-09-14 15:41:49 -07:00
2017-09-11 09:14:48 -07:00
2017-10-10 13:12:37 -07:00
2017-10-18 09:11:50 -07:00
2017-10-18 09:11:50 -07:00
2017-07-15 16:11:23 -07:00
2017-08-26 01:00:38 -07:00
2017-10-17 22:12:00 -07:00
2017-07-15 16:11:23 -07:00
2017-07-21 18:26:26 -07:00
2017-07-21 18:26:26 -07:00
2017-07-21 18:26:26 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-10-17 10:12:37 -07:00
2017-08-24 16:10:54 -07:00
2017-07-15 16:11:23 -07:00
2017-07-21 18:26:26 -07:00
2017-07-15 16:11:23 -07:00
2017-07-21 18:26:26 -07:00
2017-10-19 15:26:36 -07:00
2017-10-10 13:12:37 -07:00
2017-07-21 18:26:26 -07:00
2017-07-28 16:27:16 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-10-06 14:26:45 -07:00
2017-10-19 10:57:12 -07:00
2017-10-10 21:26:11 -07:00
2017-09-12 14:58:46 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-09-28 16:56:45 -07:00
2017-09-28 16:56:45 -07:00