@ -7,10 +7,15 @@
# include "utilities/blob_db/blob_db.h"
# include "utilities/blob_db/blob_db.h"
# include <cstdlib>
# include <cstdlib>
# include <map>
# include <memory>
# include <string>
# include "db/db_test_util.h"
# include "db/db_test_util.h"
# include "port/port.h"
# include "util/random.h"
# include "util/random.h"
# include "util/string_util.h"
# include "util/testharness.h"
# include "util/testharness.h"
# include "util/testuti l.h"
# include "utilities/blob_db/blob_db_imp l.h"
# include "utilities/blob_db/blob_db_options_impl.h"
# include "utilities/blob_db/blob_db_options_impl.h"
namespace rocksdb {
namespace rocksdb {
@ -33,9 +38,11 @@ void gen_random(char *s, const int len) {
class BlobDBTest : public testing : : Test {
class BlobDBTest : public testing : : Test {
public :
public :
const int kMaxBlobSize = 1 < < 14 ;
BlobDBTest ( ) : blobdb_ ( nullptr ) {
BlobDBTest ( ) : blobdb_ ( nullptr ) {
dbname_ = test : : TmpDir ( ) + " /blob_db_test " ;
dbname_ = test : : TmpDir ( ) + " /blob_db_test " ;
// Reopen1 (BlobDBOptionsImpl());
// Reopen(BlobDBOptionsImpl());
}
}
~ BlobDBTest ( ) {
~ BlobDBTest ( ) {
@ -45,8 +52,8 @@ class BlobDBTest : public testing::Test {
}
}
}
}
void Reopen1 ( const BlobDBOptionsImpl & bdboptions ,
void Reopen ( const BlobDBOptionsImpl & bdboptions ,
const Options & options = Options ( ) ) {
const Options & options = Options ( ) ) {
if ( blobdb_ ) {
if ( blobdb_ ) {
delete blobdb_ ;
delete blobdb_ ;
blobdb_ = nullptr ;
blobdb_ = nullptr ;
@ -61,40 +68,59 @@ class BlobDBTest : public testing::Test {
myoptions . create_if_missing = true ;
myoptions . create_if_missing = true ;
EXPECT_TRUE (
EXPECT_TRUE (
BlobDB : : Open ( myoptions , bblobdb_options , dbname_ , & blobdb_ ) . ok ( ) ) ;
BlobDB : : Open ( myoptions , bblobdb_options , dbname_ , & blobdb_ ) . ok ( ) ) ;
ASSERT_NE ( nullptr , blobdb_ ) ;
}
}
void insert_blobs ( ) {
void PutRandomWithTTL ( const std : : string & key , int32_t ttl , Random * rnd ,
WriteOptions wo ;
std : : map < std : : string , std : : string > * data = nullptr ) {
ReadOptions ro ;
int len = rnd - > Next ( ) % kMaxBlobSize + 1 ;
std : : string value ;
std : : string value = test : : RandomHumanReadableString ( rnd , len ) ;
ColumnFamilyHandle * cfh = blobdb_ - > DefaultColumnFamily ( ) ;
ColumnFamilyHandle * dcfh = blobdb_ - > DefaultColumnFamily ( ) ;
ASSERT_OK ( blobdb_ - > PutWithTTL ( WriteOptions ( ) , cfh , Slice ( key ) , Slice ( value ) ,
ttl ) ) ;
Random rnd ( 301 ) ;
if ( data ! = nullptr ) {
for ( size_t i = 0 ; i < 100000 ; i + + ) {
( * data ) [ key ] = value ;
int len = rnd . Next ( ) % 16384 ;
}
if ( ! len ) continue ;
}
char * val = new char [ len + 1 ] ;
void PutRandom ( const std : : string & key , Random * rnd ,
gen_random ( val , len ) ;
std : : map < std : : string , std : : string > * data = nullptr ) {
PutRandomWithTTL ( key , - 1 , rnd , data ) ;
}
std : : string key ( " key " ) ;
void Delete ( const std : : string & key ) {
key + = std : : to_string ( i % 500 ) ;
ColumnFamilyHandle * cfh = blobdb_ - > DefaultColumnFamily ( ) ;
ASSERT_OK ( blobdb_ - > Delete ( WriteOptions ( ) , cfh , key ) ) ;
}
Slice keyslice ( key ) ;
// Verify blob db contain expected data and nothing more.
Slice valslice ( val , len + 1 ) ;
// TODO(yiwu): Verify blob files are consistent with data in LSM.
void VerifyDB ( const std : : map < std : : string , std : : string > & data ) {
Iterator * iter = blobdb_ - > NewIterator ( ReadOptions ( ) ) ;
iter - > SeekToFirst ( ) ;
for ( auto & p : data ) {
ASSERT_TRUE ( iter - > Valid ( ) ) ;
ASSERT_EQ ( p . first , iter - > key ( ) . ToString ( ) ) ;
ASSERT_EQ ( p . second , iter - > value ( ) . ToString ( ) ) ;
iter - > Next ( ) ;
}
ASSERT_FALSE ( iter - > Valid ( ) ) ;
ASSERT_OK ( iter - > status ( ) ) ;
delete iter ;
}
int ttl = rnd . Next ( ) % 86400 ;
void InsertBlobs ( ) {
WriteOptions wo ;
std : : string value ;
ASSERT_OK ( blobdb_ - > PutWithTTL ( wo , dcfh , keyslice , valslice , ttl ) ) ;
Random rnd ( 301 ) ;
delete [ ] val ;
for ( size_t i = 0 ; i < 100000 ; i + + ) {
int32_t ttl = rnd . Next ( ) % 86400 ;
PutRandomWithTTL ( " key " + ToString ( i % 500 ) , ttl , & rnd , nullptr ) ;
}
}
for ( size_t i = 0 ; i < 10 ; i + + ) {
for ( size_t i = 0 ; i < 10 ; i + + ) {
std : : string key ( " key " ) ;
Delete ( " key " + ToString ( i % 500 ) ) ;
key + = std : : to_string ( i % 500 ) ;
Slice keyslice ( key ) ;
blobdb_ - > Delete ( wo , dcfh , keyslice ) ;
}
}
}
}
@ -104,162 +130,60 @@ class BlobDBTest : public testing::Test {
TEST_F ( BlobDBTest , DeleteComplex ) {
TEST_F ( BlobDBTest , DeleteComplex ) {
BlobDBOptionsImpl bdboptions ;
BlobDBOptionsImpl bdboptions ;
bdboptions . partial_expiration_pct = 75 ;
Reopen ( bdboptions ) ;
bdboptions . gc_check_period_millisecs = 20 * 1000 ;
bdboptions . blob_file_size = 219 * 1024 ;
Reopen1 ( bdboptions ) ;
WriteOptions wo ;
ReadOptions ro ;
std : : string value ;
ColumnFamilyHandle * dcfh = blobdb_ - > DefaultColumnFamily ( ) ;
Random rnd ( 301 ) ;
Random rnd ( 301 ) ;
for ( size_t i = 0 ; i < 100 ; i + + ) {
for ( size_t i = 0 ; i < 100 ; i + + ) {
int len = rnd . Next ( ) % 16384 ;
PutRandom ( " key " + ToString ( i ) , & rnd , nullptr ) ;
if ( ! len ) continue ;
char * val = new char [ len + 1 ] ;
gen_random ( val , len ) ;
std : : string key ( " key " ) ;
key + = std : : to_string ( i ) ;
Slice keyslice ( key ) ;
Slice valslice ( val , len + 1 ) ;
ASSERT_OK ( blobdb_ - > Put ( wo , dcfh , keyslice , valslice ) ) ;
delete [ ] val ;
}
}
for ( size_t i = 0 ; i < 100 ; i + + ) {
for ( size_t i = 0 ; i < 99 ; i + + ) {
Delete ( " key " + ToString ( i ) ) ;
std : : string key ( " key " ) ;
key + = std : : to_string ( i ) ;
Slice keyslice ( key ) ;
blobdb_ - > Delete ( wo , dcfh , keyslice ) ;
}
}
// DB should be empty.
Env : : Default ( ) - > SleepForMicroseconds ( 60 * 1000 * 1000 ) ;
VerifyDB ( { } ) ;
}
}
TEST_F ( BlobDBTest , OverrideTest ) {
TEST_F ( BlobDBTest , OverrideTest ) {
BlobDBOptionsImpl bdboptions ;
BlobDBOptionsImpl bdboptions ;
bdboptions . ttl_range_secs = 30 ;
bdboptions . gc_file_pct = 100 ;
bdboptions . gc_check_period_millisecs = 20 * 1000 ;
bdboptions . num_concurrent_simple_blobs = 2 ;
bdboptions . num_concurrent_simple_blobs = 2 ;
bdboptions . blob_file_size = 876 * 1024 * 10 ;
bdboptions . blob_file_size = 876 * 1024 * 10 ;
Options options ;
Options options ;
options . write_buffer_size = 256 * 1024 ;
options . write_buffer_size = 256 * 1024 ;
options . info_log_level = INFO_LEVEL ;
Reopen1 ( bdboptions , options ) ;
WriteOptions wo ;
Reopen ( bdboptions , options ) ;
ReadOptions ro ;
std : : string value ;
Random rnd ( 301 ) ;
Random rnd ( 301 ) ;
ColumnFamilyHandle * dcfh = blobdb_ - > DefaultColumnFamily ( ) ;
std : : map < std : : string , std : : string > data ;
for ( int i = 0 ; i < 10000 ; i + + ) {
for ( int i = 0 ; i < 10000 ; i + + ) {
int len = rnd . Next ( ) % 16384 ;
PutRandom ( " key " + ToString ( i ) , & rnd , nullptr ) ;
if ( ! len ) continue ;
char * val = new char [ len + 1 ] ;
gen_random ( val , len ) ;
std : : string key ( " key " ) ;
char x [ 10 ] ;
std : : sprintf ( x , " %04d " , i ) ;
key + = std : : string ( x ) ;
Slice keyslice ( key ) ;
Slice valslice ( val , len + 1 ) ;
ASSERT_OK ( blobdb_ - > Put ( wo , dcfh , keyslice , valslice ) ) ;
delete [ ] val ;
}
}
// override all the keys
// override all the keys
for ( int i = 0 ; i < 10000 ; i + + ) {
for ( int i = 0 ; i < 10000 ; i + + ) {
int len = rnd . Next ( ) % 16384 ;
PutRandom ( " key " + ToString ( i ) , & rnd , & data ) ;
if ( ! len ) continue ;
char * val = new char [ len + 1 ] ;
gen_random ( val , len ) ;
std : : string key ( " key " ) ;
char x [ 10 ] ;
std : : sprintf ( x , " %04d " , i ) ;
key + = std : : string ( x ) ;
Slice keyslice ( key ) ;
Slice valslice ( val , len + 1 ) ;
ASSERT_OK ( blobdb_ - > Put ( wo , dcfh , keyslice , valslice ) ) ;
delete [ ] val ;
}
}
VerifyDB ( data ) ;
blobdb_ - > Flush ( FlushOptions ( ) ) ;
# if 1
blobdb_ - > GetBaseDB ( ) - > CompactRange ( CompactRangeOptions ( ) , nullptr , nullptr ) ;
reinterpret_cast < DBImpl * > ( blobdb_ - > GetBaseDB ( ) ) - > TEST_WaitForFlushMemTable ( ) ;
reinterpret_cast < DBImpl * > ( blobdb_ - > GetBaseDB ( ) ) - > TEST_WaitForCompact ( ) ;
# endif
Env : : Default ( ) - > SleepForMicroseconds ( 120 * 1000 * 1000 ) ;
}
}
TEST_F ( BlobDBTest , DeleteTest ) {
TEST_F ( BlobDBTest , DeleteTest ) {
BlobDBOptionsImpl bdboptions ;
BlobDBOptionsImpl bdboptions ;
bdboptions . ttl_range_secs = 30 ;
bdboptions . gc_file_pct = 100 ;
bdboptions . partial_expiration_pct = 18 ;
bdboptions . gc_check_period_millisecs = 20 * 1000 ;
bdboptions . num_concurrent_simple_blobs = 1 ;
bdboptions . num_concurrent_simple_blobs = 1 ;
bdboptions . blob_file_size = 876 * 1024 ;
bdboptions . blob_file_size = 876 * 1024 ;
Reopen1 ( bdboptions ) ;
Reopen ( bdboptions ) ;
WriteOptions wo ;
ReadOptions ro ;
std : : string value ;
Random rnd ( 301 ) ;
Random rnd ( 301 ) ;
ColumnFamilyHandle * dcfh = blobdb_ - > DefaultColumnFamily ( ) ;
std : : map < std : : string , std : : string > data ;
for ( size_t i = 0 ; i < 100 ; i + + ) {
for ( size_t i = 0 ; i < 100 ; i + + ) {
int len = rnd . Next ( ) % 16384 ;
PutRandom ( " key " + ToString ( i ) , & rnd , & data ) ;
if ( ! len ) continue ;
char * val = new char [ len + 1 ] ;
gen_random ( val , len ) ;
std : : string key ( " key " ) ;
key + = std : : to_string ( i ) ;
Slice keyslice ( key ) ;
Slice valslice ( val , len + 1 ) ;
ASSERT_OK ( blobdb_ - > Put ( wo , dcfh , keyslice , valslice ) ) ;
delete [ ] val ;
}
}
for ( size_t i = 0 ; i < 100 ; i + = 5 ) {
for ( size_t i = 0 ; i < 100 ; i + = 5 ) {
std : : string key ( " key " ) ;
Delete ( " key " + ToString ( i ) ) ;
key + = std : : to_string ( i ) ;
data . erase ( " key " + ToString ( i ) ) ;
Slice keyslice ( key ) ;
blobdb_ - > Delete ( wo , dcfh , keyslice ) ;
}
}
VerifyDB ( data ) ;
Env : : Default ( ) - > SleepForMicroseconds ( 60 * 1000 * 1000 ) ;
}
}
TEST_F ( BlobDBTest , GCTestWithWrite ) {
TEST_F ( BlobDBTest , GCTestWithWrite ) {
@ -269,7 +193,7 @@ TEST_F(BlobDBTest, GCTestWithWrite) {
bdboptions . gc_check_period_millisecs = 20 * 1000 ;
bdboptions . gc_check_period_millisecs = 20 * 1000 ;
bdboptions . default_ttl_extractor = true ;
bdboptions . default_ttl_extractor = true ;
Reopen1 ( bdboptions ) ;
Reopen ( bdboptions ) ;
WriteOptions wo ;
WriteOptions wo ;
ReadOptions ro ;
ReadOptions ro ;
@ -277,11 +201,11 @@ TEST_F(BlobDBTest, GCTestWithWrite) {
ColumnFamilyHandle * dcfh = blobdb_ - > DefaultColumnFamily ( ) ;
ColumnFamilyHandle * dcfh = blobdb_ - > DefaultColumnFamily ( ) ;
WriteBatch WB ;
WriteBatch batch ;
Random rnd ( 301 ) ;
Random rnd ( 301 ) ;
for ( size_t i = 0 ; i < 100 ; i + + ) {
for ( size_t i = 0 ; i < 100 ; i + + ) {
int len = rnd . Next ( ) % 16384 ;
int len = rnd . Next ( ) % kMaxBlobSize ;
if ( ! len ) continue ;
if ( ! len ) continue ;
int ttl = 30 ;
int ttl = 30 ;
@ -297,13 +221,14 @@ TEST_F(BlobDBTest, GCTestWithWrite) {
Slice keyslice ( key ) ;
Slice keyslice ( key ) ;
Slice valslice ( val , len + BlobDB : : kTTLSuffixLength ) ;
Slice valslice ( val , len + BlobDB : : kTTLSuffixLength ) ;
WB . Put ( dcfh , keyslice , valslice ) ;
batch . Put ( dcfh , keyslice , valslice ) ;
delete [ ] val ;
delete [ ] val ;
}
}
ASSERT_OK ( blobdb_ - > Write ( wo , & WB ) ) ;
ASSERT_OK ( blobdb_ - > Write ( wo , & batch ) ) ;
Env : : Default ( ) - > SleepForMicroseconds ( 120 * 1000 * 1000 ) ;
// TODO(yiwu): Use sync point to properly trigger GC and check result.
// Env::Default()->SleepForMicroseconds(120 * 1000 * 1000);
}
}
void cb_evict ( const ColumnFamilyHandle * cfh , const Slice & key ,
void cb_evict ( const ColumnFamilyHandle * cfh , const Slice & key ,
@ -348,7 +273,7 @@ TEST_F(BlobDBTest, GetWithCompression) {
bdboptions . gc_evict_cb_fn = & cb_evict ;
bdboptions . gc_evict_cb_fn = & cb_evict ;
bdboptions . compression = CompressionType : : kLZ4Compression ;
bdboptions . compression = CompressionType : : kLZ4Compression ;
Reopen1 ( bdboptions ) ;
Reopen ( bdboptions ) ;
WriteOptions wo ;
WriteOptions wo ;
ReadOptions ro ;
ReadOptions ro ;
@ -360,7 +285,7 @@ TEST_F(BlobDBTest, GetWithCompression) {
std : : string orig ( LONG_STRING ) ;
std : : string orig ( LONG_STRING ) ;
for ( size_t i = 0 ; i < 10000 ; i + + ) {
for ( size_t i = 0 ; i < 10000 ; i + + ) {
in t len = orig . length ( ) ;
size_ t len = orig . length ( ) ;
int ttl = 3000 * ( rnd . Next ( ) % 10 ) ;
int ttl = 3000 * ( rnd . Next ( ) % 10 ) ;
char * val = new char [ len + BlobDB : : kTTLSuffixLength ] ;
char * val = new char [ len + BlobDB : : kTTLSuffixLength ] ;
@ -388,7 +313,8 @@ TEST_F(BlobDBTest, GetWithCompression) {
ASSERT_TRUE ( orig = = val ) ;
ASSERT_TRUE ( orig = = val ) ;
}
}
Env : : Default ( ) - > SleepForMicroseconds ( 120 * 1000 * 1000 ) ;
// TODO(yiwu): Use sync point to properly trigger GC and check result.
// Env::Default()->SleepForMicroseconds(120 * 1000 * 1000);
}
}
TEST_F ( BlobDBTest , GCTestWithPutAndCompression ) {
TEST_F ( BlobDBTest , GCTestWithPutAndCompression ) {
@ -400,7 +326,7 @@ TEST_F(BlobDBTest, GCTestWithPutAndCompression) {
bdboptions . gc_evict_cb_fn = & cb_evict ;
bdboptions . gc_evict_cb_fn = & cb_evict ;
bdboptions . compression = CompressionType : : kLZ4Compression ;
bdboptions . compression = CompressionType : : kLZ4Compression ;
Reopen1 ( bdboptions ) ;
Reopen ( bdboptions ) ;
WriteOptions wo ;
WriteOptions wo ;
ReadOptions ro ;
ReadOptions ro ;
@ -410,7 +336,7 @@ TEST_F(BlobDBTest, GCTestWithPutAndCompression) {
ColumnFamilyHandle * dcfh = blobdb_ - > DefaultColumnFamily ( ) ;
ColumnFamilyHandle * dcfh = blobdb_ - > DefaultColumnFamily ( ) ;
for ( size_t i = 0 ; i < 100 ; i + + ) {
for ( size_t i = 0 ; i < 100 ; i + + ) {
int len = rnd . Next ( ) % 16384 ;
int len = rnd . Next ( ) % kMaxBlobSize ;
if ( ! len ) continue ;
if ( ! len ) continue ;
int ttl = 30 ;
int ttl = 30 ;
@ -430,7 +356,8 @@ TEST_F(BlobDBTest, GCTestWithPutAndCompression) {
delete [ ] val ;
delete [ ] val ;
}
}
Env : : Default ( ) - > SleepForMicroseconds ( 120 * 1000 * 1000 ) ;
// TODO(yiwu): Use sync point to properly trigger GC and check result.
// Env::Default()->SleepForMicroseconds(120 * 1000 * 1000);
}
}
TEST_F ( BlobDBTest , GCTestWithPut ) {
TEST_F ( BlobDBTest , GCTestWithPut ) {
@ -441,7 +368,7 @@ TEST_F(BlobDBTest, GCTestWithPut) {
bdboptions . default_ttl_extractor = true ;
bdboptions . default_ttl_extractor = true ;
bdboptions . gc_evict_cb_fn = & cb_evict ;
bdboptions . gc_evict_cb_fn = & cb_evict ;
Reopen1 ( bdboptions ) ;
Reopen ( bdboptions ) ;
WriteOptions wo ;
WriteOptions wo ;
ReadOptions ro ;
ReadOptions ro ;
@ -451,7 +378,7 @@ TEST_F(BlobDBTest, GCTestWithPut) {
ColumnFamilyHandle * dcfh = blobdb_ - > DefaultColumnFamily ( ) ;
ColumnFamilyHandle * dcfh = blobdb_ - > DefaultColumnFamily ( ) ;
for ( size_t i = 0 ; i < 100 ; i + + ) {
for ( size_t i = 0 ; i < 100 ; i + + ) {
int len = rnd . Next ( ) % 16384 ;
int len = rnd . Next ( ) % kMaxBlobSize ;
if ( ! len ) continue ;
if ( ! len ) continue ;
int ttl = 30 ;
int ttl = 30 ;
@ -471,7 +398,8 @@ TEST_F(BlobDBTest, GCTestWithPut) {
delete [ ] val ;
delete [ ] val ;
}
}
Env : : Default ( ) - > SleepForMicroseconds ( 120 * 1000 * 1000 ) ;
// TODO(yiwu): Use sync point to properly trigger GC and check result.
// Env::Default()->SleepForMicroseconds(120 * 1000 * 1000);
}
}
TEST_F ( BlobDBTest , GCTest ) {
TEST_F ( BlobDBTest , GCTest ) {
@ -479,7 +407,7 @@ TEST_F(BlobDBTest, GCTest) {
bdboptions . ttl_range_secs = 30 ;
bdboptions . ttl_range_secs = 30 ;
bdboptions . gc_file_pct = 100 ;
bdboptions . gc_file_pct = 100 ;
Reopen1 ( bdboptions ) ;
Reopen ( bdboptions ) ;
WriteOptions wo ;
WriteOptions wo ;
ReadOptions ro ;
ReadOptions ro ;
@ -489,7 +417,7 @@ TEST_F(BlobDBTest, GCTest) {
ColumnFamilyHandle * dcfh = blobdb_ - > DefaultColumnFamily ( ) ;
ColumnFamilyHandle * dcfh = blobdb_ - > DefaultColumnFamily ( ) ;
for ( size_t i = 0 ; i < 100 ; i + + ) {
for ( size_t i = 0 ; i < 100 ; i + + ) {
int len = rnd . Next ( ) % 16384 ;
int len = rnd . Next ( ) % kMaxBlobSize ;
if ( ! len ) continue ;
if ( ! len ) continue ;
char * val = new char [ len + 1 ] ;
char * val = new char [ len + 1 ] ;
@ -507,18 +435,19 @@ TEST_F(BlobDBTest, GCTest) {
delete [ ] val ;
delete [ ] val ;
}
}
Env : : Default ( ) - > SleepForMicroseconds ( 240 * 1000 * 1000 ) ;
// TODO(yiwu): Use sync point to properly trigger GC and check result.
// Env::Default()->SleepForMicroseconds(240 * 1000 * 1000);
}
}
TEST_F ( BlobDBTest , DISABLED_MultipleWriters ) {
TEST_F ( BlobDBTest , DISABLED_MultipleWriters ) {
BlobDBOptionsImpl bdboptions ;
BlobDBOptionsImpl bdboptions ;
Reopen1 ( bdboptions ) ;
Reopen ( bdboptions ) ;
ASSERT_TRUE ( blobdb_ ! = nullptr ) ;
ASSERT_TRUE ( blobdb_ ! = nullptr ) ;
std : : vector < std : : thread > workers ;
std : : vector < std : : thread > workers ;
for ( size_t ii = 0 ; ii < 10 ; ii + + )
for ( size_t ii = 0 ; ii < 10 ; ii + + )
workers . push_back ( std : : thread ( & BlobDBTest : : insert_b lobs, this ) ) ;
workers . push_back ( std : : thread ( & BlobDBTest : : InsertB lobs, this ) ) ;
for ( std : : thread & t : workers ) {
for ( std : : thread & t : workers ) {
if ( t . joinable ( ) ) {
if ( t . joinable ( ) ) {
@ -534,9 +463,10 @@ TEST_F(BlobDBTest, DISABLED_MultipleWriters) {
// ASSERT_EQ("v2", value);
// ASSERT_EQ("v2", value);
}
}
#if 0
TEST_F ( BlobDBTest , Large ) {
TEST_F ( BlobDBTest , Large ) {
ASSERT_TRUE ( blobdb_ ! = nullptr ) ;
BlobDBOptionsImpl bdboptions ;
Options options ;
Reopen ( bdboptions , options ) ;
WriteOptions wo ;
WriteOptions wo ;
ReadOptions ro ;
ReadOptions ro ;
@ -559,7 +489,6 @@ TEST_F(BlobDBTest, Large) {
ASSERT_OK ( blobdb_ - > Get ( ro , dcfh , " barfoo " , & value ) ) ;
ASSERT_OK ( blobdb_ - > Get ( ro , dcfh , " barfoo " , & value ) ) ;
ASSERT_EQ ( value3 , value ) ;
ASSERT_EQ ( value3 , value ) ;
}
}
# endif
} // namespace blob_db
} // namespace blob_db
} // namespace rocksdb
} // namespace rocksdb