]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
Don't let two L0->L1 compactions run in parallel
authorIgor Canadi <icanadi@fb.com>
Thu, 11 Jun 2015 22:42:16 +0000 (15:42 -0700)
committerIgor Canadi <icanadi@fb.com>
Thu, 11 Jun 2015 22:48:28 +0000 (15:48 -0700)
commit8cde6cfcb43c2ef4e302279870aa93ede93b5309
tree9728b2a8f228a20af275c80d78e4594b7ede732f
parent4fba322d8dd240c17317f92b8d9396bdc2f0ecfa
Don't let two L0->L1 compactions run in parallel

Summary: With experimental feature SuggestCompactRange() we don't restrict running two L0->L1 compactions in parallel. This diff fixes this.

Test Plan: added a unit test to reproduce the failure. fixed the unit test

Reviewers: yhchiang, rven, sdong

Reviewed By: sdong

Subscribers: dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D39981

Conflicts:
db/db_test.cc
db/compaction_picker.cc
db/db_test.cc