@ -237,7 +237,7 @@ class DBIteratorTest : public testing::Test {
TEST_F ( DBIteratorTest , DBIteratorPrevNext ) {
TEST_F ( DBIteratorTest , DBIteratorPrevNext ) {
Options options ;
Options options ;
ImmutableOptions cf_ options = ImmutableOptions ( options ) ;
ImmutableOptions i options = ImmutableOptions ( options ) ;
MutableCFOptions mutable_cf_options = MutableCFOptions ( options ) ;
MutableCFOptions mutable_cf_options = MutableCFOptions ( options ) ;
{
{
TestIterator * internal_iter = new TestIterator ( BytewiseComparator ( ) ) ;
TestIterator * internal_iter = new TestIterator ( BytewiseComparator ( ) ) ;
@ -252,7 +252,7 @@ TEST_F(DBIteratorTest, DBIteratorPrevNext) {
ReadOptions ro ;
ReadOptions ro ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 10 /* sequence */ ,
internal_iter , nullptr /* version */ , 10 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -286,7 +286,7 @@ TEST_F(DBIteratorTest, DBIteratorPrevNext) {
ReadOptions ro ;
ReadOptions ro ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 10 /* sequence */ ,
internal_iter , nullptr /* version */ , 10 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -314,7 +314,7 @@ TEST_F(DBIteratorTest, DBIteratorPrevNext) {
ro . iterate_upper_bound = & prefix ;
ro . iterate_upper_bound = & prefix ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 10 /* sequence */ ,
internal_iter , nullptr /* version */ , 10 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -348,7 +348,7 @@ TEST_F(DBIteratorTest, DBIteratorPrevNext) {
ro . iterate_upper_bound = & prefix ;
ro . iterate_upper_bound = & prefix ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 10 /* sequence */ ,
internal_iter , nullptr /* version */ , 10 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -385,7 +385,7 @@ TEST_F(DBIteratorTest, DBIteratorPrevNext) {
ro . iterate_upper_bound = & prefix ;
ro . iterate_upper_bound = & prefix ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 10 /* sequence */ ,
internal_iter , nullptr /* version */ , 10 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -417,7 +417,7 @@ TEST_F(DBIteratorTest, DBIteratorPrevNext) {
ro . iterate_upper_bound = & prefix ;
ro . iterate_upper_bound = & prefix ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 7 /* sequence */ ,
internal_iter , nullptr /* version */ , 7 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -456,7 +456,7 @@ TEST_F(DBIteratorTest, DBIteratorPrevNext) {
ro . iterate_upper_bound = & prefix ;
ro . iterate_upper_bound = & prefix ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 4 /* sequence */ ,
internal_iter , nullptr /* version */ , 4 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -483,7 +483,7 @@ TEST_F(DBIteratorTest, DBIteratorPrevNext) {
ro . iterate_upper_bound = & prefix ;
ro . iterate_upper_bound = & prefix ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 10 /* sequence */ ,
internal_iter , nullptr /* version */ , 10 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -508,7 +508,7 @@ TEST_F(DBIteratorTest, DBIteratorPrevNext) {
ro . iterate_upper_bound = & prefix ;
ro . iterate_upper_bound = & prefix ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 10 /* sequence */ ,
internal_iter , nullptr /* version */ , 10 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -545,7 +545,7 @@ TEST_F(DBIteratorTest, DBIteratorPrevNext) {
ro . iterate_upper_bound = & prefix ;
ro . iterate_upper_bound = & prefix ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 7 /* sequence */ ,
internal_iter , nullptr /* version */ , 7 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -576,7 +576,7 @@ TEST_F(DBIteratorTest, DBIteratorPrevNext) {
ReadOptions ro ;
ReadOptions ro ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 10 /* sequence */ ,
internal_iter , nullptr /* version */ , 10 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -621,7 +621,7 @@ TEST_F(DBIteratorTest, DBIteratorPrevNext) {
ReadOptions ro ;
ReadOptions ro ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 2 /* sequence */ ,
internal_iter , nullptr /* version */ , 2 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -654,7 +654,7 @@ TEST_F(DBIteratorTest, DBIteratorPrevNext) {
ReadOptions ro ;
ReadOptions ro ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 10 /* sequence */ ,
internal_iter , nullptr /* version */ , 10 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -677,7 +677,7 @@ TEST_F(DBIteratorTest, DBIteratorPrevNext) {
TEST_F ( DBIteratorTest , DBIteratorEmpty ) {
TEST_F ( DBIteratorTest , DBIteratorEmpty ) {
Options options ;
Options options ;
ImmutableOptions cf_ options = ImmutableOptions ( options ) ;
ImmutableOptions i options = ImmutableOptions ( options ) ;
MutableCFOptions mutable_cf_options = MutableCFOptions ( options ) ;
MutableCFOptions mutable_cf_options = MutableCFOptions ( options ) ;
ReadOptions ro ;
ReadOptions ro ;
@ -686,7 +686,7 @@ TEST_F(DBIteratorTest, DBIteratorEmpty) {
internal_iter - > Finish ( ) ;
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 0 /* sequence */ ,
internal_iter , nullptr /* version */ , 0 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -700,7 +700,7 @@ TEST_F(DBIteratorTest, DBIteratorEmpty) {
internal_iter - > Finish ( ) ;
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 0 /* sequence */ ,
internal_iter , nullptr /* version */ , 0 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -757,7 +757,7 @@ TEST_F(DBIteratorTest, DBIteratorUseSkip) {
ReadOptions ro ;
ReadOptions ro ;
Options options ;
Options options ;
options . merge_operator = MergeOperators : : CreateFromStringId ( " stringappend " ) ;
options . merge_operator = MergeOperators : : CreateFromStringId ( " stringappend " ) ;
ImmutableOptions cf_ options = ImmutableOptions ( options ) ;
ImmutableOptions i options = ImmutableOptions ( options ) ;
MutableCFOptions mutable_cf_options = MutableCFOptions ( options ) ;
MutableCFOptions mutable_cf_options = MutableCFOptions ( options ) ;
{
{
@ -772,7 +772,7 @@ TEST_F(DBIteratorTest, DBIteratorUseSkip) {
options . statistics = ROCKSDB_NAMESPACE : : CreateDBStatistics ( ) ;
options . statistics = ROCKSDB_NAMESPACE : : CreateDBStatistics ( ) ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , i + 2 /* sequence */ ,
internal_iter , nullptr /* version */ , i + 2 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -810,7 +810,7 @@ TEST_F(DBIteratorTest, DBIteratorUseSkip) {
internal_iter - > Finish ( ) ;
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , i + 2 /* sequence */ ,
internal_iter , nullptr /* version */ , i + 2 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -841,7 +841,7 @@ TEST_F(DBIteratorTest, DBIteratorUseSkip) {
internal_iter - > Finish ( ) ;
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 202 /* sequence */ ,
internal_iter , nullptr /* version */ , 202 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -876,7 +876,7 @@ TEST_F(DBIteratorTest, DBIteratorUseSkip) {
internal_iter - > AddPut ( " c " , " 200 " ) ;
internal_iter - > AddPut ( " c " , " 200 " ) ;
internal_iter - > Finish ( ) ;
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , i /* sequence */ ,
internal_iter , nullptr /* version */ , i /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -896,7 +896,7 @@ TEST_F(DBIteratorTest, DBIteratorUseSkip) {
internal_iter - > AddPut ( " c " , " 200 " ) ;
internal_iter - > AddPut ( " c " , " 200 " ) ;
internal_iter - > Finish ( ) ;
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 200 /* sequence */ ,
internal_iter , nullptr /* version */ , 200 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -934,7 +934,7 @@ TEST_F(DBIteratorTest, DBIteratorUseSkip) {
internal_iter - > Finish ( ) ;
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , i + 2 /* sequence */ ,
internal_iter , nullptr /* version */ , i + 2 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -971,7 +971,7 @@ TEST_F(DBIteratorTest, DBIteratorUseSkip) {
internal_iter - > Finish ( ) ;
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , i + 2 /* sequence */ ,
internal_iter , nullptr /* version */ , i + 2 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -1004,7 +1004,7 @@ TEST_F(DBIteratorTest, DBIteratorUseSkip) {
TEST_F ( DBIteratorTest , DBIteratorSkipInternalKeys ) {
TEST_F ( DBIteratorTest , DBIteratorSkipInternalKeys ) {
Options options ;
Options options ;
ImmutableOptions cf_ options = ImmutableOptions ( options ) ;
ImmutableOptions i options = ImmutableOptions ( options ) ;
MutableCFOptions mutable_cf_options = MutableCFOptions ( options ) ;
MutableCFOptions mutable_cf_options = MutableCFOptions ( options ) ;
ReadOptions ro ;
ReadOptions ro ;
@ -1023,7 +1023,7 @@ TEST_F(DBIteratorTest, DBIteratorSkipInternalKeys) {
ro . max_skippable_internal_keys = 0 ;
ro . max_skippable_internal_keys = 0 ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 10 /* sequence */ ,
internal_iter , nullptr /* version */ , 10 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -1071,7 +1071,7 @@ TEST_F(DBIteratorTest, DBIteratorSkipInternalKeys) {
ro . max_skippable_internal_keys = 2 ;
ro . max_skippable_internal_keys = 2 ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 10 /* sequence */ ,
internal_iter , nullptr /* version */ , 10 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -1117,7 +1117,7 @@ TEST_F(DBIteratorTest, DBIteratorSkipInternalKeys) {
ro . max_skippable_internal_keys = 2 ;
ro . max_skippable_internal_keys = 2 ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 10 /* sequence */ ,
internal_iter , nullptr /* version */ , 10 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -1157,7 +1157,7 @@ TEST_F(DBIteratorTest, DBIteratorSkipInternalKeys) {
ro . max_skippable_internal_keys = 2 ;
ro . max_skippable_internal_keys = 2 ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 10 /* sequence */ ,
internal_iter , nullptr /* version */ , 10 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -1194,7 +1194,7 @@ TEST_F(DBIteratorTest, DBIteratorSkipInternalKeys) {
ro . max_skippable_internal_keys = 2 ;
ro . max_skippable_internal_keys = 2 ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 10 /* sequence */ ,
internal_iter , nullptr /* version */ , 10 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -1226,7 +1226,7 @@ TEST_F(DBIteratorTest, DBIteratorSkipInternalKeys) {
ro . max_skippable_internal_keys = 2 ;
ro . max_skippable_internal_keys = 2 ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 10 /* sequence */ ,
internal_iter , nullptr /* version */ , 10 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -1265,7 +1265,7 @@ TEST_F(DBIteratorTest, DBIteratorSkipInternalKeys) {
ro . max_skippable_internal_keys = 2 ;
ro . max_skippable_internal_keys = 2 ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 10 /* sequence */ ,
internal_iter , nullptr /* version */ , 10 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -1304,7 +1304,7 @@ TEST_F(DBIteratorTest, DBIteratorSkipInternalKeys) {
ro . max_skippable_internal_keys = i ;
ro . max_skippable_internal_keys = i ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 2 * i + 1 /* sequence */ ,
internal_iter , nullptr /* version */ , 2 * i + 1 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -1359,7 +1359,7 @@ TEST_F(DBIteratorTest, DBIteratorSkipInternalKeys) {
options . max_sequential_skip_in_iterations = 1000 ;
options . max_sequential_skip_in_iterations = 1000 ;
ro . max_skippable_internal_keys = i ;
ro . max_skippable_internal_keys = i ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 2 * i + 1 /* sequence */ ,
internal_iter , nullptr /* version */ , 2 * i + 1 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -1500,7 +1500,7 @@ TEST_F(DBIteratorTest, DBIterator5) {
ReadOptions ro ;
ReadOptions ro ;
Options options ;
Options options ;
options . merge_operator = MergeOperators : : CreateFromStringId ( " stringappend " ) ;
options . merge_operator = MergeOperators : : CreateFromStringId ( " stringappend " ) ;
ImmutableOptions cf_ options = ImmutableOptions ( options ) ;
ImmutableOptions i options = ImmutableOptions ( options ) ;
MutableCFOptions mutable_cf_options = MutableCFOptions ( options ) ;
MutableCFOptions mutable_cf_options = MutableCFOptions ( options ) ;
{
{
@ -1515,7 +1515,7 @@ TEST_F(DBIteratorTest, DBIterator5) {
internal_iter - > Finish ( ) ;
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 0 /* sequence */ ,
internal_iter , nullptr /* version */ , 0 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -1539,7 +1539,7 @@ TEST_F(DBIteratorTest, DBIterator5) {
internal_iter - > Finish ( ) ;
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 1 /* sequence */ ,
internal_iter , nullptr /* version */ , 1 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -1563,7 +1563,7 @@ TEST_F(DBIteratorTest, DBIterator5) {
internal_iter - > Finish ( ) ;
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 2 /* sequence */ ,
internal_iter , nullptr /* version */ , 2 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -1587,7 +1587,7 @@ TEST_F(DBIteratorTest, DBIterator5) {
internal_iter - > Finish ( ) ;
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 3 /* sequence */ ,
internal_iter , nullptr /* version */ , 3 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -1611,7 +1611,7 @@ TEST_F(DBIteratorTest, DBIterator5) {
internal_iter - > Finish ( ) ;
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 4 /* sequence */ ,
internal_iter , nullptr /* version */ , 4 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -1635,7 +1635,7 @@ TEST_F(DBIteratorTest, DBIterator5) {
internal_iter - > Finish ( ) ;
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 5 /* sequence */ ,
internal_iter , nullptr /* version */ , 5 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -1659,7 +1659,7 @@ TEST_F(DBIteratorTest, DBIterator5) {
internal_iter - > Finish ( ) ;
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 6 /* sequence */ ,
internal_iter , nullptr /* version */ , 6 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -1681,7 +1681,7 @@ TEST_F(DBIteratorTest, DBIterator5) {
internal_iter - > AddPut ( " b " , " val_b " ) ;
internal_iter - > AddPut ( " b " , " val_b " ) ;
internal_iter - > Finish ( ) ;
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 10 /* sequence */ ,
internal_iter , nullptr /* version */ , 10 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -1698,7 +1698,7 @@ TEST_F(DBIteratorTest, DBIterator6) {
ReadOptions ro ;
ReadOptions ro ;
Options options ;
Options options ;
options . merge_operator = MergeOperators : : CreateFromStringId ( " stringappend " ) ;
options . merge_operator = MergeOperators : : CreateFromStringId ( " stringappend " ) ;
ImmutableOptions cf_ options = ImmutableOptions ( options ) ;
ImmutableOptions i options = ImmutableOptions ( options ) ;
MutableCFOptions mutable_cf_options = MutableCFOptions ( options ) ;
MutableCFOptions mutable_cf_options = MutableCFOptions ( options ) ;
{
{
@ -1713,7 +1713,7 @@ TEST_F(DBIteratorTest, DBIterator6) {
internal_iter - > Finish ( ) ;
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 0 /* sequence */ ,
internal_iter , nullptr /* version */ , 0 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -1737,7 +1737,7 @@ TEST_F(DBIteratorTest, DBIterator6) {
internal_iter - > Finish ( ) ;
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 1 /* sequence */ ,
internal_iter , nullptr /* version */ , 1 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -1761,7 +1761,7 @@ TEST_F(DBIteratorTest, DBIterator6) {
internal_iter - > Finish ( ) ;
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 2 /* sequence */ ,
internal_iter , nullptr /* version */ , 2 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -1785,7 +1785,7 @@ TEST_F(DBIteratorTest, DBIterator6) {
internal_iter - > Finish ( ) ;
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 3 /* sequence */ ,
internal_iter , nullptr /* version */ , 3 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -1805,7 +1805,7 @@ TEST_F(DBIteratorTest, DBIterator6) {
internal_iter - > Finish ( ) ;
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 4 /* sequence */ ,
internal_iter , nullptr /* version */ , 4 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -1829,7 +1829,7 @@ TEST_F(DBIteratorTest, DBIterator6) {
internal_iter - > Finish ( ) ;
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 5 /* sequence */ ,
internal_iter , nullptr /* version */ , 5 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -1853,7 +1853,7 @@ TEST_F(DBIteratorTest, DBIterator6) {
internal_iter - > Finish ( ) ;
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 6 /* sequence */ ,
internal_iter , nullptr /* version */ , 6 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -1870,7 +1870,7 @@ TEST_F(DBIteratorTest, DBIterator7) {
ReadOptions ro ;
ReadOptions ro ;
Options options ;
Options options ;
options . merge_operator = MergeOperators : : CreateFromStringId ( " stringappend " ) ;
options . merge_operator = MergeOperators : : CreateFromStringId ( " stringappend " ) ;
ImmutableOptions cf_ options = ImmutableOptions ( options ) ;
ImmutableOptions i options = ImmutableOptions ( options ) ;
MutableCFOptions mutable_cf_options = MutableCFOptions ( options ) ;
MutableCFOptions mutable_cf_options = MutableCFOptions ( options ) ;
{
{
@ -1897,7 +1897,7 @@ TEST_F(DBIteratorTest, DBIterator7) {
internal_iter - > Finish ( ) ;
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 0 /* sequence */ ,
internal_iter , nullptr /* version */ , 0 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -1933,7 +1933,7 @@ TEST_F(DBIteratorTest, DBIterator7) {
internal_iter - > Finish ( ) ;
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 2 /* sequence */ ,
internal_iter , nullptr /* version */ , 2 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -1975,7 +1975,7 @@ TEST_F(DBIteratorTest, DBIterator7) {
internal_iter - > Finish ( ) ;
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 4 /* sequence */ ,
internal_iter , nullptr /* version */ , 4 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -2017,7 +2017,7 @@ TEST_F(DBIteratorTest, DBIterator7) {
internal_iter - > Finish ( ) ;
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 5 /* sequence */ ,
internal_iter , nullptr /* version */ , 5 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -2064,7 +2064,7 @@ TEST_F(DBIteratorTest, DBIterator7) {
internal_iter - > Finish ( ) ;
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 6 /* sequence */ ,
internal_iter , nullptr /* version */ , 6 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -2112,7 +2112,7 @@ TEST_F(DBIteratorTest, DBIterator7) {
internal_iter - > Finish ( ) ;
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 7 /* sequence */ ,
internal_iter , nullptr /* version */ , 7 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -2154,7 +2154,7 @@ TEST_F(DBIteratorTest, DBIterator7) {
internal_iter - > Finish ( ) ;
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 9 /* sequence */ ,
internal_iter , nullptr /* version */ , 9 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -2202,7 +2202,7 @@ TEST_F(DBIteratorTest, DBIterator7) {
internal_iter - > Finish ( ) ;
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 13 /* sequence */ ,
internal_iter , nullptr /* version */ , 13 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;
@ -2251,7 +2251,7 @@ TEST_F(DBIteratorTest, DBIterator7) {
internal_iter - > Finish ( ) ;
internal_iter - > Finish ( ) ;
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
std : : unique_ptr < Iterator > db_iter ( NewDBIterator (
env_ , ro , cf_ options, mutable_cf_options , BytewiseComparator ( ) ,
env_ , ro , i options, mutable_cf_options , BytewiseComparator ( ) ,
internal_iter , nullptr /* version */ , 14 /* sequence */ ,
internal_iter , nullptr /* version */ , 14 /* sequence */ ,
options . max_sequential_skip_in_iterations ,
options . max_sequential_skip_in_iterations ,
nullptr /* read_callback */ ) ) ;
nullptr /* read_callback */ ) ) ;