rocksdb/utilities/ttl
Igor Canadi 35ca59364c Don't let flushes preempt compactions
Summary:
When we first started, max_background_flushes was 0 by default and compaction thread was executing flushes (since there was no flush thread). Then, we switched the default max_background_flushes to 1. However, we still support the case where there is no flush thread and flushes are done in compaction. This is making our code a bit more complicated. By not supporting this use-case we can make our code simpler.

We have a special case that when you set max_background_flushes to 0, we
schedule the flush to execute on the compaction thread.

Test Plan: make check (there might be some unit tests that depend on this behavior)

Reviewers: IslamAbdelRahman, yhchiang, sdong

Reviewed By: sdong

Subscribers: dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D41931
2015-07-17 12:02:52 -07:00
..
db_ttl_impl.cc move convenience.h out of utilities 2015-07-15 14:51:51 -07:00
db_ttl_impl.h Ensure Windows build w/o port/port.h in public headers 2015-07-16 12:10:16 -07:00
ttl_test.cc Don't let flushes preempt compactions 2015-07-17 12:02:52 -07:00