@ -135,14 +135,14 @@ TEST_F(FlushJobTest, Empty) {
auto cfd = versions_ - > GetColumnFamilySet ( ) - > GetDefault ( ) ;
EventLogger event_logger ( db_options_ . info_log . get ( ) ) ;
SnapshotChecker * snapshot_checker = nullptr ; // not relavant
FlushJob flush_job ( dbname_ , versions_ - > GetColumnFamilySet ( ) - > GetDefault ( ) ,
db_options_ , * cfd - > GetLatestMutableCFOptions ( ) ,
nullptr /* memtable_id */ , env_options_ , versions_ . get ( ) ,
& mutex_ , & shutting_down_ , { } , kMaxSequenceNumber ,
snapshot_checker , & job_context , nullptr , nullptr , nullptr ,
kNoCompression , nullptr , & event_logger , false ,
true /* sync_output_directory */ ,
true /* write_manifest */ , Env : : Priority : : USER ) ;
FlushJob flush_job (
dbname_ , versions_ - > GetColumnFamilySet ( ) - > GetDefault ( ) , db_options_ ,
* cfd - > GetLatestMutableCFOptions ( ) , nullptr /* memtable_id */ ,
env_options_ , versions_ . get ( ) , & mutex_ , & shutting_down_ , { } ,
kMaxSequenceNumber , snapshot_checker , & job_context , nullptr , nullptr ,
nullptr , kNoCompression , nullptr , & event_logger , false ,
true /* sync_output_directory */ , true /* write_manifest */ ,
Env : : Priority : : USER , nullptr /*IOTracer*/ ) ;
{
InstrumentedMutexLock l ( & mutex_ ) ;
flush_job . PickMemTable ( ) ;
@ -216,14 +216,14 @@ TEST_F(FlushJobTest, NonEmpty) {
EventLogger event_logger ( db_options_ . info_log . get ( ) ) ;
SnapshotChecker * snapshot_checker = nullptr ; // not relavant
FlushJob flush_job ( dbname_ , versions_ - > GetColumnFamilySet ( ) - > GetDefault ( ) ,
db_options_ , * cfd - > GetLatestMutableCFOptions ( ) ,
nullptr /* memtable_id */ , env_options_ , versions_ . get ( ) ,
& mutex_ , & shutting_down_ , { } , kMaxSequenceNumber ,
snapshot_checker , & job_context , nullptr , nullptr , nullptr ,
kNoCompression , db_options_ . statistics . get ( ) ,
& event_logger , true , true /* sync_output_directory */ ,
true /* write_manifest */ , Env : : Priority : : USER ) ;
FlushJob flush_job (
dbname_ , versions_ - > GetColumnFamilySet ( ) - > GetDefault ( ) , db_options_ ,
* cfd - > GetLatestMutableCFOptions ( ) , nullptr /* memtable_id */ ,
env_options_ , versions_ . get ( ) , & mutex_ , & shutting_down_ , { } ,
kMaxSequenceNumber , snapshot_checker , & job_context , nullptr , nullptr ,
nullptr , kNoCompression , db_options_ . statistics . get ( ) , & event_logger ,
true , true /* sync_output_directory */ , true /* write_manifest */ ,
Env : : Priority : : USER , nullptr /*IOTracer*/ ) ;
HistogramData hist ;
FileMetaData file_meta ;
@ -278,14 +278,14 @@ TEST_F(FlushJobTest, FlushMemTablesSingleColumnFamily) {
assert ( memtable_ids . size ( ) = = num_mems ) ;
uint64_t smallest_memtable_id = memtable_ids . front ( ) ;
uint64_t flush_memtable_id = smallest_memtable_id + num_mems_to_flush - 1 ;
FlushJob flush_job ( dbname_ , versions_ - > GetColumnFamilySet ( ) - > GetDefault ( ) ,
db_options_ , * cfd - > GetLatestMutableCFOptions ( ) ,
& flush_memtable_id , env_options_ , versions_ . get ( ) , & mutex _,
& shutting_down_ , { } , kMaxSequenceNumber , snapshot_check er ,
& job_context , nullptr , nullptr , nullptr , kNoCompression ,
FlushJob flush_job (
dbname_ , versions_ - > GetColumnFamilySet ( ) - > GetDefault ( ) , db_options_ ,
* cfd - > GetLatestMutableCFOptions ( ) , & flush_memtable_id , env_options _,
versions_ . get ( ) , & mutex_ , & shutting_down_ , { } , kMaxSequenceNumber ,
snapshot_checker , & job_context , nullptr , nullptr , nullptr , kNoCompression ,
db_options_ . statistics . get ( ) , & event_logger , true ,
true /* sync_output_directory */ ,
true /* write_manifest */ , Env : : Priority : : USER ) ;
true /* sync_output_directory */ , true /* write_manifest */ ,
Env : : Priority : : USER , nullptr /*IOTracer*/ ) ;
HistogramData hist ;
FileMetaData file_meta ;
mutex_ . Lock ( ) ;
@ -357,7 +357,7 @@ TEST_F(FlushJobTest, FlushMemtablesMultipleColumnFamilies) {
& job_context , nullptr , nullptr , nullptr , kNoCompression ,
db_options_ . statistics . get ( ) , & event_logger , true ,
false /* sync_output_directory */ , false /* write_manifest */ ,
Env : : Priority : : USER ) ) ;
Env : : Priority : : USER , nullptr /*IOTracer*/ ) ) ;
k + + ;
}
HistogramData hist ;
@ -466,14 +466,14 @@ TEST_F(FlushJobTest, Snapshots) {
EventLogger event_logger ( db_options_ . info_log . get ( ) ) ;
SnapshotChecker * snapshot_checker = nullptr ; // not relavant
FlushJob flush_job ( dbname_ , versions_ - > GetColumnFamilySet ( ) - > GetDefault ( ) ,
db_options_ , * cfd - > GetLatestMutableCFOptions ( ) ,
nullptr /* memtable_id */ , env_options_ , versions_ . get ( ) ,
& mutex_ , & shutting_down_ , snapshots , kMaxSequenceNumber ,
snapshot_checker , & job_context , nullptr , nullptr , nullptr ,
kNoCompression , db_options_ . statistics . get ( ) ,
& event_logger , true , true /* sync_output_directory */ ,
true /* write_manifest */ , Env : : Priority : : USER ) ;
FlushJob flush_job (
dbname_ , versions_ - > GetColumnFamilySet ( ) - > GetDefault ( ) , db_options_ ,
* cfd - > GetLatestMutableCFOptions ( ) , nullptr /* memtable_id */ ,
env_options_ , versions_ . get ( ) , & mutex_ , & shutting_down_ , snapshots ,
kMaxSequenceNumber , snapshot_checker , & job_context , nullptr , nullptr ,
nullptr , kNoCompression , db_options_ . statistics . get ( ) , & event_logger ,
true , true /* sync_output_directory */ , true /* write_manifest */ ,
Env : : Priority : : USER , nullptr /*IOTracer*/ ) ;
mutex_ . Lock ( ) ;
flush_job . PickMemTable ( ) ;
ASSERT_OK ( flush_job . Run ( ) ) ;