]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
DB to only flush the column family with the largest memtable while option.db_write_bu...
authorsdong <siying.d@fb.com>
Tue, 24 Nov 2015 23:53:42 +0000 (15:53 -0800)
committersdong <siying.d@fb.com>
Mon, 30 Nov 2015 21:36:57 +0000 (13:36 -0800)
commitdb320b1b82e3c8458fdebf7989a280adaf0f1950
treea46f6dabafcc2efca9489a35605168e6407a711a
parent4a009f91729a7ed5c29a0b15bed06ef8f9050cd8
DB to only flush the column family with the largest memtable while option.db_write_buffer_size is hit

Summary: When option.db_write_buffer_size is hit, we currently flush all column families. Move to flush the column family with the largest active memt table instead. In this way, we can avoid too many small files in some cases.

Test Plan: Modify test DBTest.SharedWriteBuffer to work with the updated behavior

Reviewers: kradhakrishnan, yhchiang, rven, anthony, IslamAbdelRahman, igor

Reviewed By: igor

Subscribers: march, leveldb, dhruba

Differential Revision: https://reviews.facebook.net/D51291
HISTORY.md
db/db_impl.cc
db/db_test.cc