In tools/db_stress.cc, set proper value in NewHashSkipListRepFactory's bucket_size
Summary: Now that the arena is used to allocate space for hashskiplist's bucket. The bucket size need to be set small enough to avoid "should_flush_" failure in memtable's assertion. Test Plan: make all check Reviewers: sdong Reviewed By: sdong Subscribers: igor Differential Revision: https://reviews.facebook.net/D19371
This commit is contained in:
parent
f5d4df1c02
commit
c4018e771c
@ -1591,7 +1591,7 @@ class StressTest {
|
|||||||
}
|
}
|
||||||
switch (FLAGS_rep_factory) {
|
switch (FLAGS_rep_factory) {
|
||||||
case kHashSkipList:
|
case kHashSkipList:
|
||||||
options_.memtable_factory.reset(NewHashSkipListRepFactory());
|
options_.memtable_factory.reset(NewHashSkipListRepFactory(10000));
|
||||||
break;
|
break;
|
||||||
case kSkipList:
|
case kSkipList:
|
||||||
// no need to do anything
|
// no need to do anything
|
||||||
|
Loading…
x
Reference in New Issue
Block a user