@ -158,7 +158,9 @@ TEST(DBIteratorTest, DBIteratorPrevNext) {
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter (
NewDBIterator ( env_ , options , BytewiseComparator ( ) , internal_iter , 10 ) ) ;
NewDBIterator ( env_ , ImmutableCFOptions ( options ) ,
BytewiseComparator ( ) , internal_iter , 10 ,
options . max_sequential_skip_in_iterations ) ) ;
db_iter - > SeekToLast ( ) ;
ASSERT_TRUE ( db_iter - > Valid ( ) ) ;
@ -191,7 +193,9 @@ TEST(DBIteratorTest, DBIteratorPrevNext) {
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter (
NewDBIterator ( env_ , options , BytewiseComparator ( ) , internal_iter , 10 ) ) ;
NewDBIterator ( env_ , ImmutableCFOptions ( options ) ,
BytewiseComparator ( ) , internal_iter , 10 ,
options . max_sequential_skip_in_iterations ) ) ;
db_iter - > SeekToFirst ( ) ;
ASSERT_TRUE ( db_iter - > Valid ( ) ) ;
@ -232,7 +236,9 @@ TEST(DBIteratorTest, DBIteratorPrevNext) {
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter (
NewDBIterator ( env_ , options , BytewiseComparator ( ) , internal_iter , 2 ) ) ;
NewDBIterator ( env_ , ImmutableCFOptions ( options ) ,
BytewiseComparator ( ) , internal_iter , 2 ,
options . max_sequential_skip_in_iterations ) ) ;
db_iter - > SeekToLast ( ) ;
ASSERT_TRUE ( db_iter - > Valid ( ) ) ;
ASSERT_EQ ( db_iter - > key ( ) . ToString ( ) , " b " ) ;
@ -262,7 +268,9 @@ TEST(DBIteratorTest, DBIteratorPrevNext) {
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter (
NewDBIterator ( env_ , options , BytewiseComparator ( ) , internal_iter , 10 ) ) ;
NewDBIterator ( env_ , ImmutableCFOptions ( options ) ,
BytewiseComparator ( ) , internal_iter , 10 ,
options . max_sequential_skip_in_iterations ) ) ;
db_iter - > SeekToLast ( ) ;
ASSERT_TRUE ( db_iter - > Valid ( ) ) ;
ASSERT_EQ ( db_iter - > key ( ) . ToString ( ) , " c " ) ;
@ -288,7 +296,9 @@ TEST(DBIteratorTest, DBIteratorEmpty) {
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter (
NewDBIterator ( env_ , options , BytewiseComparator ( ) , internal_iter , 0 ) ) ;
NewDBIterator ( env_ , ImmutableCFOptions ( options ) ,
BytewiseComparator ( ) , internal_iter , 0 ,
options . max_sequential_skip_in_iterations ) ) ;
db_iter - > SeekToLast ( ) ;
ASSERT_TRUE ( ! db_iter - > Valid ( ) ) ;
}
@ -298,7 +308,9 @@ TEST(DBIteratorTest, DBIteratorEmpty) {
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter (
NewDBIterator ( env_ , options , BytewiseComparator ( ) , internal_iter , 0 ) ) ;
NewDBIterator ( env_ , ImmutableCFOptions ( options ) ,
BytewiseComparator ( ) , internal_iter , 0 ,
options . max_sequential_skip_in_iterations ) ) ;
db_iter - > SeekToFirst ( ) ;
ASSERT_TRUE ( ! db_iter - > Valid ( ) ) ;
}
@ -318,7 +330,9 @@ TEST(DBIteratorTest, DBIteratorUseSkipCountSkips) {
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter (
NewDBIterator ( env_ , options , BytewiseComparator ( ) , internal_iter , 2 ) ) ;
NewDBIterator ( env_ , ImmutableCFOptions ( options ) ,
BytewiseComparator ( ) , internal_iter , 2 ,
options . max_sequential_skip_in_iterations ) ) ;
db_iter - > SeekToLast ( ) ;
ASSERT_TRUE ( db_iter - > Valid ( ) ) ;
ASSERT_EQ ( db_iter - > key ( ) . ToString ( ) , " c " ) ;
@ -357,7 +371,9 @@ TEST(DBIteratorTest, DBIteratorUseSkip) {
options . statistics = rocksdb : : CreateDBStatistics ( ) ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , options , BytewiseComparator ( ) , internal_iter , i + 2 ) ) ;
env_ , ImmutableCFOptions ( options ) ,
BytewiseComparator ( ) , internal_iter , i + 2 ,
options . max_sequential_skip_in_iterations ) ) ;
db_iter - > SeekToLast ( ) ;
ASSERT_TRUE ( db_iter - > Valid ( ) ) ;
@ -391,7 +407,9 @@ TEST(DBIteratorTest, DBIteratorUseSkip) {
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , options , BytewiseComparator ( ) , internal_iter , i + 2 ) ) ;
env_ , ImmutableCFOptions ( options ) ,
BytewiseComparator ( ) , internal_iter , i + 2 ,
options . max_sequential_skip_in_iterations ) ) ;
db_iter - > SeekToLast ( ) ;
ASSERT_TRUE ( db_iter - > Valid ( ) ) ;
@ -418,7 +436,9 @@ TEST(DBIteratorTest, DBIteratorUseSkip) {
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , options , BytewiseComparator ( ) , internal_iter , 202 ) ) ;
env_ , ImmutableCFOptions ( options ) ,
BytewiseComparator ( ) , internal_iter , 202 ,
options . max_sequential_skip_in_iterations ) ) ;
db_iter - > SeekToLast ( ) ;
ASSERT_TRUE ( db_iter - > Valid ( ) ) ;
@ -449,7 +469,9 @@ TEST(DBIteratorTest, DBIteratorUseSkip) {
internal_iter - > AddPut ( " c " , " 200 " ) ;
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter (
NewDBIterator ( env_ , options , BytewiseComparator ( ) , internal_iter , i ) ) ;
NewDBIterator ( env_ , ImmutableCFOptions ( options ) ,
BytewiseComparator ( ) , internal_iter , i ,
options . max_sequential_skip_in_iterations ) ) ;
db_iter - > SeekToLast ( ) ;
ASSERT_TRUE ( ! db_iter - > Valid ( ) ) ;
@ -464,7 +486,9 @@ TEST(DBIteratorTest, DBIteratorUseSkip) {
internal_iter - > AddPut ( " c " , " 200 " ) ;
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter (
NewDBIterator ( env_ , options , BytewiseComparator ( ) , internal_iter , 200 ) ) ;
NewDBIterator ( env_ , ImmutableCFOptions ( options ) ,
BytewiseComparator ( ) , internal_iter , 200 ,
options . max_sequential_skip_in_iterations ) ) ;
db_iter - > SeekToLast ( ) ;
ASSERT_TRUE ( db_iter - > Valid ( ) ) ;
ASSERT_EQ ( db_iter - > key ( ) . ToString ( ) , " c " ) ;
@ -497,7 +521,9 @@ TEST(DBIteratorTest, DBIteratorUseSkip) {
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , options , BytewiseComparator ( ) , internal_iter , i + 2 ) ) ;
env_ , ImmutableCFOptions ( options ) ,
BytewiseComparator ( ) , internal_iter , i + 2 ,
options . max_sequential_skip_in_iterations ) ) ;
db_iter - > SeekToLast ( ) ;
ASSERT_TRUE ( db_iter - > Valid ( ) ) ;
@ -530,7 +556,9 @@ TEST(DBIteratorTest, DBIteratorUseSkip) {
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , options , BytewiseComparator ( ) , internal_iter , i + 2 ) ) ;
env_ , ImmutableCFOptions ( options ) ,
BytewiseComparator ( ) , internal_iter , i + 2 ,
options . max_sequential_skip_in_iterations ) ) ;
db_iter - > SeekToLast ( ) ;
ASSERT_TRUE ( db_iter - > Valid ( ) ) ;
@ -570,7 +598,9 @@ TEST(DBIteratorTest, DBIterator) {
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter (
NewDBIterator ( env_ , options , BytewiseComparator ( ) , internal_iter , 1 ) ) ;
NewDBIterator ( env_ , ImmutableCFOptions ( options ) ,
BytewiseComparator ( ) , internal_iter , 1 ,
options . max_sequential_skip_in_iterations ) ) ;
db_iter - > SeekToFirst ( ) ;
ASSERT_TRUE ( db_iter - > Valid ( ) ) ;
ASSERT_EQ ( db_iter - > key ( ) . ToString ( ) , " a " ) ;
@ -590,7 +620,9 @@ TEST(DBIteratorTest, DBIterator) {
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter (
NewDBIterator ( env_ , options , BytewiseComparator ( ) , internal_iter , 0 ) ) ;
NewDBIterator ( env_ , ImmutableCFOptions ( options ) ,
BytewiseComparator ( ) , internal_iter , 0 ,
options . max_sequential_skip_in_iterations ) ) ;
db_iter - > SeekToFirst ( ) ;
ASSERT_TRUE ( db_iter - > Valid ( ) ) ;
ASSERT_EQ ( db_iter - > key ( ) . ToString ( ) , " a " ) ;
@ -609,7 +641,9 @@ TEST(DBIteratorTest, DBIterator) {
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter (
NewDBIterator ( env_ , options , BytewiseComparator ( ) , internal_iter , 2 ) ) ;
NewDBIterator ( env_ , ImmutableCFOptions ( options ) ,
BytewiseComparator ( ) , internal_iter , 2 ,
options . max_sequential_skip_in_iterations ) ) ;
db_iter - > SeekToFirst ( ) ;
ASSERT_TRUE ( db_iter - > Valid ( ) ) ;
ASSERT_EQ ( db_iter - > key ( ) . ToString ( ) , " a " ) ;
@ -628,7 +662,9 @@ TEST(DBIteratorTest, DBIterator) {
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter (
NewDBIterator ( env_ , options , BytewiseComparator ( ) , internal_iter , 4 ) ) ;
NewDBIterator ( env_ , ImmutableCFOptions ( options ) ,
BytewiseComparator ( ) , internal_iter , 4 ,
options . max_sequential_skip_in_iterations ) ) ;
db_iter - > SeekToFirst ( ) ;
ASSERT_TRUE ( db_iter - > Valid ( ) ) ;
ASSERT_EQ ( db_iter - > key ( ) . ToString ( ) , " a " ) ;
@ -654,7 +690,9 @@ TEST(DBIteratorTest, DBIterator) {
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter (
NewDBIterator ( env_ , options , BytewiseComparator ( ) , internal_iter , 0 ) ) ;
NewDBIterator ( env_ , ImmutableCFOptions ( options ) ,
BytewiseComparator ( ) , internal_iter , 0 ,
options . max_sequential_skip_in_iterations ) ) ;
db_iter - > SeekToLast ( ) ;
ASSERT_TRUE ( db_iter - > Valid ( ) ) ;
ASSERT_EQ ( db_iter - > key ( ) . ToString ( ) , " a " ) ;
@ -675,7 +713,9 @@ TEST(DBIteratorTest, DBIterator) {
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter (
NewDBIterator ( env_ , options , BytewiseComparator ( ) , internal_iter , 1 ) ) ;
NewDBIterator ( env_ , ImmutableCFOptions ( options ) ,
BytewiseComparator ( ) , internal_iter , 1 ,
options . max_sequential_skip_in_iterations ) ) ;
db_iter - > SeekToLast ( ) ;
ASSERT_TRUE ( db_iter - > Valid ( ) ) ;
ASSERT_EQ ( db_iter - > key ( ) . ToString ( ) , " a " ) ;
@ -696,7 +736,9 @@ TEST(DBIteratorTest, DBIterator) {
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter (
NewDBIterator ( env_ , options , BytewiseComparator ( ) , internal_iter , 2 ) ) ;
NewDBIterator ( env_ , ImmutableCFOptions ( options ) ,
BytewiseComparator ( ) , internal_iter , 2 ,
options . max_sequential_skip_in_iterations ) ) ;
db_iter - > SeekToLast ( ) ;
ASSERT_TRUE ( db_iter - > Valid ( ) ) ;
ASSERT_EQ ( db_iter - > key ( ) . ToString ( ) , " a " ) ;
@ -717,7 +759,9 @@ TEST(DBIteratorTest, DBIterator) {
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter (
NewDBIterator ( env_ , options , BytewiseComparator ( ) , internal_iter , 3 ) ) ;
NewDBIterator ( env_ , ImmutableCFOptions ( options ) ,
BytewiseComparator ( ) , internal_iter , 3 ,
options . max_sequential_skip_in_iterations ) ) ;
db_iter - > SeekToLast ( ) ;
ASSERT_TRUE ( db_iter - > Valid ( ) ) ;
ASSERT_EQ ( db_iter - > key ( ) . ToString ( ) , " a " ) ;
@ -738,7 +782,9 @@ TEST(DBIteratorTest, DBIterator) {
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter (
NewDBIterator ( env_ , options , BytewiseComparator ( ) , internal_iter , 4 ) ) ;
NewDBIterator ( env_ , ImmutableCFOptions ( options ) ,
BytewiseComparator ( ) , internal_iter , 4 ,
options . max_sequential_skip_in_iterations ) ) ;
db_iter - > SeekToLast ( ) ;
ASSERT_TRUE ( db_iter - > Valid ( ) ) ;
ASSERT_EQ ( db_iter - > key ( ) . ToString ( ) , " a " ) ;
@ -759,7 +805,9 @@ TEST(DBIteratorTest, DBIterator) {
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter (
NewDBIterator ( env_ , options , BytewiseComparator ( ) , internal_iter , 5 ) ) ;
NewDBIterator ( env_ , ImmutableCFOptions ( options ) ,
BytewiseComparator ( ) , internal_iter , 5 ,
options . max_sequential_skip_in_iterations ) ) ;
db_iter - > SeekToLast ( ) ;
ASSERT_TRUE ( db_iter - > Valid ( ) ) ;
ASSERT_EQ ( db_iter - > key ( ) . ToString ( ) , " a " ) ;
@ -780,7 +828,9 @@ TEST(DBIteratorTest, DBIterator) {
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter (
NewDBIterator ( env_ , options , BytewiseComparator ( ) , internal_iter , 6 ) ) ;
NewDBIterator ( env_ , ImmutableCFOptions ( options ) ,
BytewiseComparator ( ) , internal_iter , 6 ,
options . max_sequential_skip_in_iterations ) ) ;
db_iter - > SeekToLast ( ) ;
ASSERT_TRUE ( db_iter - > Valid ( ) ) ;
ASSERT_EQ ( db_iter - > key ( ) . ToString ( ) , " a " ) ;
@ -803,7 +853,9 @@ TEST(DBIteratorTest, DBIterator) {
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter (
NewDBIterator ( env_ , options , BytewiseComparator ( ) , internal_iter , 0 ) ) ;
NewDBIterator ( env_ , ImmutableCFOptions ( options ) ,
BytewiseComparator ( ) , internal_iter , 0 ,
options . max_sequential_skip_in_iterations ) ) ;
db_iter - > SeekToLast ( ) ;
ASSERT_TRUE ( db_iter - > Valid ( ) ) ;
ASSERT_EQ ( db_iter - > key ( ) . ToString ( ) , " a " ) ;
@ -824,7 +876,9 @@ TEST(DBIteratorTest, DBIterator) {
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter (
NewDBIterator ( env_ , options , BytewiseComparator ( ) , internal_iter , 1 ) ) ;
NewDBIterator ( env_ , ImmutableCFOptions ( options ) ,
BytewiseComparator ( ) , internal_iter , 1 ,
options . max_sequential_skip_in_iterations ) ) ;
db_iter - > SeekToLast ( ) ;
ASSERT_TRUE ( db_iter - > Valid ( ) ) ;
ASSERT_EQ ( db_iter - > key ( ) . ToString ( ) , " a " ) ;
@ -845,7 +899,9 @@ TEST(DBIteratorTest, DBIterator) {
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter (
NewDBIterator ( env_ , options , BytewiseComparator ( ) , internal_iter , 2 ) ) ;
NewDBIterator ( env_ , ImmutableCFOptions ( options ) ,
BytewiseComparator ( ) , internal_iter , 2 ,
options . max_sequential_skip_in_iterations ) ) ;
db_iter - > SeekToLast ( ) ;
ASSERT_TRUE ( db_iter - > Valid ( ) ) ;
ASSERT_EQ ( db_iter - > key ( ) . ToString ( ) , " a " ) ;
@ -866,7 +922,9 @@ TEST(DBIteratorTest, DBIterator) {
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter (
NewDBIterator ( env_ , options , BytewiseComparator ( ) , internal_iter , 3 ) ) ;
NewDBIterator ( env_ , ImmutableCFOptions ( options ) ,
BytewiseComparator ( ) , internal_iter , 3 ,
options . max_sequential_skip_in_iterations ) ) ;
db_iter - > SeekToLast ( ) ;
ASSERT_TRUE ( ! db_iter - > Valid ( ) ) ;
}
@ -883,7 +941,9 @@ TEST(DBIteratorTest, DBIterator) {
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter (
NewDBIterator ( env_ , options , BytewiseComparator ( ) , internal_iter , 4 ) ) ;
NewDBIterator ( env_ , ImmutableCFOptions ( options ) ,
BytewiseComparator ( ) , internal_iter , 4 ,
options . max_sequential_skip_in_iterations ) ) ;
db_iter - > SeekToLast ( ) ;
ASSERT_TRUE ( db_iter - > Valid ( ) ) ;
ASSERT_EQ ( db_iter - > key ( ) . ToString ( ) , " a " ) ;
@ -904,7 +964,9 @@ TEST(DBIteratorTest, DBIterator) {
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter (
NewDBIterator ( env_ , options , BytewiseComparator ( ) , internal_iter , 5 ) ) ;
NewDBIterator ( env_ , ImmutableCFOptions ( options ) ,
BytewiseComparator ( ) , internal_iter , 5 ,
options . max_sequential_skip_in_iterations ) ) ;
db_iter - > SeekToLast ( ) ;
ASSERT_TRUE ( db_iter - > Valid ( ) ) ;
ASSERT_EQ ( db_iter - > key ( ) . ToString ( ) , " a " ) ;
@ -925,7 +987,9 @@ TEST(DBIteratorTest, DBIterator) {
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter (
NewDBIterator ( env_ , options , BytewiseComparator ( ) , internal_iter , 6 ) ) ;
NewDBIterator ( env_ , ImmutableCFOptions ( options ) ,
BytewiseComparator ( ) , internal_iter , 6 ,
options . max_sequential_skip_in_iterations ) ) ;
db_iter - > SeekToLast ( ) ;
ASSERT_TRUE ( db_iter - > Valid ( ) ) ;
ASSERT_EQ ( db_iter - > key ( ) . ToString ( ) , " a " ) ;
@ -960,7 +1024,9 @@ TEST(DBIteratorTest, DBIterator) {
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter (
NewDBIterator ( env_ , options , BytewiseComparator ( ) , internal_iter , 0 ) ) ;
NewDBIterator ( env_ , ImmutableCFOptions ( options ) ,
BytewiseComparator ( ) , internal_iter , 0 ,
options . max_sequential_skip_in_iterations ) ) ;
db_iter - > SeekToLast ( ) ;
ASSERT_TRUE ( db_iter - > Valid ( ) ) ;
ASSERT_EQ ( db_iter - > key ( ) . ToString ( ) , " a " ) ;
@ -993,7 +1059,9 @@ TEST(DBIteratorTest, DBIterator) {
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter (
NewDBIterator ( env_ , options , BytewiseComparator ( ) , internal_iter , 2 ) ) ;
NewDBIterator ( env_ , ImmutableCFOptions ( options ) ,
BytewiseComparator ( ) , internal_iter , 2 ,
options . max_sequential_skip_in_iterations ) ) ;
db_iter - > SeekToLast ( ) ;
ASSERT_TRUE ( db_iter - > Valid ( ) ) ;
@ -1032,7 +1100,9 @@ TEST(DBIteratorTest, DBIterator) {
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter (
NewDBIterator ( env_ , options , BytewiseComparator ( ) , internal_iter , 4 ) ) ;
NewDBIterator ( env_ , ImmutableCFOptions ( options ) ,
BytewiseComparator ( ) , internal_iter , 4 ,
options . max_sequential_skip_in_iterations ) ) ;
db_iter - > SeekToLast ( ) ;
ASSERT_TRUE ( db_iter - > Valid ( ) ) ;
@ -1071,7 +1141,9 @@ TEST(DBIteratorTest, DBIterator) {
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter (
NewDBIterator ( env_ , options , BytewiseComparator ( ) , internal_iter , 5 ) ) ;
NewDBIterator ( env_ , ImmutableCFOptions ( options ) ,
BytewiseComparator ( ) , internal_iter , 5 ,
options . max_sequential_skip_in_iterations ) ) ;
db_iter - > SeekToLast ( ) ;
ASSERT_TRUE ( db_iter - > Valid ( ) ) ;
@ -1115,7 +1187,9 @@ TEST(DBIteratorTest, DBIterator) {
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter (
NewDBIterator ( env_ , options , BytewiseComparator ( ) , internal_iter , 6 ) ) ;
NewDBIterator ( env_ , ImmutableCFOptions ( options ) ,
BytewiseComparator ( ) , internal_iter , 6 ,
options . max_sequential_skip_in_iterations ) ) ;
db_iter - > SeekToLast ( ) ;
ASSERT_TRUE ( db_iter - > Valid ( ) ) ;
@ -1160,7 +1234,9 @@ TEST(DBIteratorTest, DBIterator) {
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter (
NewDBIterator ( env_ , options , BytewiseComparator ( ) , internal_iter , 7 ) ) ;
NewDBIterator ( env_ , ImmutableCFOptions ( options ) ,
BytewiseComparator ( ) , internal_iter , 7 ,
options . max_sequential_skip_in_iterations ) ) ;
db_iter - > SeekToLast ( ) ;
ASSERT_TRUE ( db_iter - > Valid ( ) ) ;
@ -1199,7 +1275,9 @@ TEST(DBIteratorTest, DBIterator) {
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter (
NewDBIterator ( env_ , options , BytewiseComparator ( ) , internal_iter , 9 ) ) ;
NewDBIterator ( env_ , ImmutableCFOptions ( options ) ,
BytewiseComparator ( ) , internal_iter , 9 ,
options . max_sequential_skip_in_iterations ) ) ;
db_iter - > SeekToLast ( ) ;
ASSERT_TRUE ( db_iter - > Valid ( ) ) ;
@ -1244,7 +1322,9 @@ TEST(DBIteratorTest, DBIterator) {
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , options , BytewiseComparator ( ) , internal_iter , 13 ) ) ;
env_ , ImmutableCFOptions ( options ) ,
BytewiseComparator ( ) , internal_iter , 13 ,
options . max_sequential_skip_in_iterations ) ) ;
db_iter - > SeekToLast ( ) ;
ASSERT_TRUE ( db_iter - > Valid ( ) ) ;
@ -1290,7 +1370,9 @@ TEST(DBIteratorTest, DBIterator) {
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , options , BytewiseComparator ( ) , internal_iter , 14 ) ) ;
env_ , ImmutableCFOptions ( options ) ,
BytewiseComparator ( ) , internal_iter , 14 ,
options . max_sequential_skip_in_iterations ) ) ;
db_iter - > SeekToLast ( ) ;
ASSERT_TRUE ( db_iter - > Valid ( ) ) ;
@ -1316,7 +1398,9 @@ TEST(DBIteratorTest, DBIterator) {
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter (
NewDBIterator ( env_ , options , BytewiseComparator ( ) , internal_iter , 10 ) ) ;
NewDBIterator ( env_ , ImmutableCFOptions ( options ) ,
BytewiseComparator ( ) , internal_iter , 10 ,
options . max_sequential_skip_in_iterations ) ) ;
db_iter - > SeekToLast ( ) ;
ASSERT_TRUE ( db_iter - > Valid ( ) ) ;
ASSERT_EQ ( db_iter - > key ( ) . ToString ( ) , " b " ) ;