@ -729,7 +729,8 @@ class VersionSetTestBase {
versions_ . reset (
new VersionSet ( dbname_ , & db_options_ , env_options_ , table_cache_ . get ( ) ,
& write_buffer_manager_ , & write_controller_ ,
/*block_cache_tracer=*/ nullptr , /*io_tracer=*/ nullptr ) ) ;
/*block_cache_tracer=*/ nullptr , /*io_tracer=*/ nullptr ,
/*db_session_id*/ " " ) ) ;
reactive_versions_ = std : : make_shared < ReactiveVersionSet > (
dbname_ , & db_options_ , env_options_ , table_cache_ . get ( ) ,
& write_buffer_manager_ , & write_controller_ , nullptr ) ;
@ -832,7 +833,8 @@ class VersionSetTestBase {
versions_ . reset (
new VersionSet ( dbname_ , & db_options_ , env_options_ , table_cache_ . get ( ) ,
& write_buffer_manager_ , & write_controller_ ,
/*block_cache_tracer=*/ nullptr , /*io_tracer=*/ nullptr ) ) ;
/*block_cache_tracer=*/ nullptr , /*io_tracer=*/ nullptr ,
/*db_session_id*/ " " ) ) ;
EXPECT_OK ( versions_ - > Recover ( column_families_ , false ) ) ;
}
@ -1336,7 +1338,8 @@ TEST_F(VersionSetTest, WalAddition) {
std : : unique_ptr < VersionSet > new_versions (
new VersionSet ( dbname_ , & db_options_ , env_options_ , table_cache_ . get ( ) ,
& write_buffer_manager_ , & write_controller_ ,
/*block_cache_tracer=*/ nullptr , /*io_tracer=*/ nullptr ) ) ;
/*block_cache_tracer=*/ nullptr , /*io_tracer=*/ nullptr ,
/*db_session_id*/ " " ) ) ;
ASSERT_OK ( new_versions - > Recover ( column_families_ , /*read_only=*/ false ) ) ;
const auto & wals = new_versions - > GetWalSet ( ) . GetWals ( ) ;
ASSERT_EQ ( wals . size ( ) , 1 ) ;
@ -1402,7 +1405,8 @@ TEST_F(VersionSetTest, WalCloseWithoutSync) {
std : : unique_ptr < VersionSet > new_versions (
new VersionSet ( dbname_ , & db_options_ , env_options_ , table_cache_ . get ( ) ,
& write_buffer_manager_ , & write_controller_ ,
/*block_cache_tracer=*/ nullptr , /*io_tracer=*/ nullptr ) ) ;
/*block_cache_tracer=*/ nullptr , /*io_tracer=*/ nullptr ,
/*db_session_id*/ " " ) ) ;
ASSERT_OK ( new_versions - > Recover ( column_families_ , false ) ) ;
const auto & wals = new_versions - > GetWalSet ( ) . GetWals ( ) ;
ASSERT_EQ ( wals . size ( ) , 2 ) ;
@ -1454,7 +1458,8 @@ TEST_F(VersionSetTest, WalDeletion) {
std : : unique_ptr < VersionSet > new_versions (
new VersionSet ( dbname_ , & db_options_ , env_options_ , table_cache_ . get ( ) ,
& write_buffer_manager_ , & write_controller_ ,
/*block_cache_tracer=*/ nullptr , /*io_tracer=*/ nullptr ) ) ;
/*block_cache_tracer=*/ nullptr , /*io_tracer=*/ nullptr ,
/*db_session_id*/ " " ) ) ;
ASSERT_OK ( new_versions - > Recover ( column_families_ , false ) ) ;
const auto & wals = new_versions - > GetWalSet ( ) . GetWals ( ) ;
ASSERT_EQ ( wals . size ( ) , 1 ) ;
@ -1491,7 +1496,8 @@ TEST_F(VersionSetTest, WalDeletion) {
std : : unique_ptr < VersionSet > new_versions (
new VersionSet ( dbname_ , & db_options_ , env_options_ , table_cache_ . get ( ) ,
& write_buffer_manager_ , & write_controller_ ,
/*block_cache_tracer=*/ nullptr , /*io_tracer=*/ nullptr ) ) ;
/*block_cache_tracer=*/ nullptr , /*io_tracer=*/ nullptr ,
/*db_session_id*/ " " ) ) ;
ASSERT_OK ( new_versions - > Recover ( column_families_ , false ) ) ;
const auto & wals = new_versions - > GetWalSet ( ) . GetWals ( ) ;
ASSERT_EQ ( wals . size ( ) , 1 ) ;
@ -1608,7 +1614,8 @@ TEST_F(VersionSetTest, DeleteWalsBeforeNonExistingWalNumber) {
std : : unique_ptr < VersionSet > new_versions (
new VersionSet ( dbname_ , & db_options_ , env_options_ , table_cache_ . get ( ) ,
& write_buffer_manager_ , & write_controller_ ,
/*block_cache_tracer=*/ nullptr , /*io_tracer=*/ nullptr ) ) ;
/*block_cache_tracer=*/ nullptr , /*io_tracer=*/ nullptr ,
/*db_session_id*/ " " ) ) ;
ASSERT_OK ( new_versions - > Recover ( column_families_ , false ) ) ;
const auto & wals = new_versions - > GetWalSet ( ) . GetWals ( ) ;
ASSERT_EQ ( wals . size ( ) , 1 ) ;
@ -1643,7 +1650,8 @@ TEST_F(VersionSetTest, DeleteAllWals) {
std : : unique_ptr < VersionSet > new_versions (
new VersionSet ( dbname_ , & db_options_ , env_options_ , table_cache_ . get ( ) ,
& write_buffer_manager_ , & write_controller_ ,
/*block_cache_tracer=*/ nullptr , /*io_tracer=*/ nullptr ) ) ;
/*block_cache_tracer=*/ nullptr , /*io_tracer=*/ nullptr ,
/*db_session_id*/ " " ) ) ;
ASSERT_OK ( new_versions - > Recover ( column_families_ , false ) ) ;
const auto & wals = new_versions - > GetWalSet ( ) . GetWals ( ) ;
ASSERT_EQ ( wals . size ( ) , 0 ) ;
@ -1684,7 +1692,8 @@ TEST_F(VersionSetTest, AtomicGroupWithWalEdits) {
std : : unique_ptr < VersionSet > new_versions (
new VersionSet ( dbname_ , & db_options_ , env_options_ , table_cache_ . get ( ) ,
& write_buffer_manager_ , & write_controller_ ,
/*block_cache_tracer=*/ nullptr , /*io_tracer=*/ nullptr ) ) ;
/*block_cache_tracer=*/ nullptr , /*io_tracer=*/ nullptr ,
/*db_session_id*/ " " ) ) ;
std : : string db_id ;
ASSERT_OK (
new_versions - > Recover ( column_families_ , /*read_only=*/ false , & db_id ) ) ;
@ -1737,7 +1746,8 @@ class VersionSetWithTimestampTest : public VersionSetTest {
std : : unique_ptr < VersionSet > vset (
new VersionSet ( dbname_ , & db_options_ , env_options_ , table_cache_ . get ( ) ,
& write_buffer_manager_ , & write_controller_ ,
/*block_cache_tracer=*/ nullptr , /*io_tracer=*/ nullptr ) ) ;
/*block_cache_tracer=*/ nullptr , /*io_tracer=*/ nullptr ,
/*db_session_id*/ " " ) ) ;
ASSERT_OK ( vset - > Recover ( column_families_ , /*read_only=*/ false ,
/*db_id=*/ nullptr ) ) ;
for ( auto * cfd : * ( vset - > GetColumnFamilySet ( ) ) ) {