rocksdb/env
Andrew Kryczka 6cc9aef162 New API for background work in single thread pool
Summary:
Previously users could set `max_background_flushes=0` to force rocksdb to use a single thread pool for both background flushes and compactions. That'll no longer be possible since I'm going to deprecate `max_background_flushes` and `max_background_compactions` in favor of a single option. This diff introduces a new way to force a single thread pool: when high-pri pool has zero threads, all background jobs will be submitted to low-pri pool.

Note the majority of the code change is adding `Env::GetBackgroundThreads()`, which is necessary to check whether the user has provided a zero-sized thread pool.
Closes https://github.com/facebook/rocksdb/pull/2204

Differential Revision: D4936256

Pulled By: ajkr

fbshipit-source-id: 929a07a0c0705f7766f5339cd013ff74e90d6e01
2017-05-23 11:12:27 -07:00
..
env_basic_test.cc Move some files under util/ to separate dirs 2017-04-05 19:09:16 -07:00
env_chroot.cc Add GPLv2 as an alternative license. 2017-04-27 18:06:12 -07:00
env_chroot.h Add GPLv2 as an alternative license. 2017-04-27 18:06:12 -07:00
env_hdfs.cc Add GPLv2 as an alternative license. 2017-04-27 18:06:12 -07:00
env_posix.cc New API for background work in single thread pool 2017-05-23 11:12:27 -07:00
env_test.cc disable direct reads for log and manifest and add direct io to tests 2017-05-22 18:41:28 -07:00
env.cc disable direct reads for log and manifest and add direct io to tests 2017-05-22 18:41:28 -07:00
io_posix.cc fix memory alignment with logical sector size 2017-05-04 01:30:13 -07:00
io_posix.h Add GPLv2 as an alternative license. 2017-04-27 18:06:12 -07:00
memenv.cc Move some files under util/ to separate dirs 2017-04-05 19:09:16 -07:00
mock_env_test.cc Move some files under util/ to separate dirs 2017-04-05 19:09:16 -07:00
mock_env.cc Add GPLv2 as an alternative license. 2017-04-27 18:06:12 -07:00
mock_env.h Add GPLv2 as an alternative license. 2017-04-27 18:06:12 -07:00
posix_logger.h Make PosixLogger::flush_pending_ atomic 2017-04-28 17:07:56 -07:00