Giuseppe Ottaviano
69ec8356b2
Allow SstFileWriter to use the rate limiter
...
Summary:
The default IO priority of WritableFiles is IO_TOTAL, meaning that
they will bypass the rate limiter if it's passed in the options.
This change allows to pass an io priority in construction, so that by
setting IO_LOW or IO_HIGH the rate limit will be honored.
It also fixes a minor bug: SstFileWriter's copy and move constructor
are not disabled and incorrect, as any copy/move will result in a
double free. Switching to unique_ptr makes the object correctly
movable and non-copyable as expected.
Also fix minor style inconsistencies.
Closes https://github.com/facebook/rocksdb/pull/2335
Differential Revision: D5113260
Pulled By: sagar0
fbshipit-source-id: e084236e7ff0b50a56cbeceaa9fedd5e210bf9f8
2017-05-23 11:42:09 -07:00
..
2016-09-20 10:11:51 -07:00
2016-07-20 11:23:31 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-05-02 13:46:39 -07:00
2017-04-27 18:06:12 -07:00
2017-05-18 06:41:23 -07:00
2017-05-18 06:41:23 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2016-07-08 17:50:51 -07:00
2016-02-09 15:12:00 -08:00
2017-05-10 01:49:52 -07:00
2017-04-27 18:06:12 -07:00
2017-05-10 01:49:52 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-05-17 23:12:36 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2016-07-20 11:23:31 -07:00
2016-07-20 11:23:31 -07:00
2017-05-17 23:12:36 -07:00
2017-05-05 23:20:01 -07:00
2017-05-05 23:20:01 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-05-01 18:12:46 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2016-10-13 17:36:48 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-05-05 23:20:01 -07:00
2017-05-05 23:20:01 -07:00
2017-04-27 18:06:12 -07:00
2017-05-05 23:20:01 -07:00
2017-05-05 23:20:01 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2016-08-26 11:46:32 -07:00
2016-07-20 11:23:31 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-05-05 23:20:01 -07:00
2017-05-05 23:20:01 -07:00
2016-10-18 12:04:56 -07:00
2017-04-27 18:06:12 -07:00
2017-05-23 11:42:09 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-05-05 23:20:01 -07:00
2017-05-05 23:20:01 -07:00
2017-05-05 23:20:01 -07:00
2017-05-05 23:20:01 -07:00