]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
Fix DBTest.SuggestCompactRangeTest for disable jemalloc case
authorsdong <siying.d@fb.com>
Mon, 30 Nov 2015 19:41:53 +0000 (11:41 -0800)
committersdong <siying.d@fb.com>
Tue, 1 Dec 2015 00:40:47 +0000 (16:40 -0800)
commitef8ed3681c85dc0e4970b9a8ec7b8db4685e2e23
tree4fac4e30f0960ab6b08b40106351ff79b89fa97a
parentdb320b1b82e3c8458fdebf7989a280adaf0f1950
Fix DBTest.SuggestCompactRangeTest for disable jemalloc case

Summary: DBTest.SuggestCompactRangeTest fails for the case when jemalloc is disabled, including ASAN and valgrind builds. It is caused by the improvement of skip list, which allocates different size of nodes for a new records. Fix it by using a special mem table that triggers a flush by number of entries. In that way the behavior will be consistent for all allocators.

Test Plan: Run the test with both of DISABLE_JEMALLOC=1 and 0

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

Reviewed By: IslamAbdelRahman

Subscribers: leveldb, dhruba

Differential Revision: https://reviews.facebook.net/D51423
db/db_test.cc
db/db_test_util.cc
db/db_test_util.h