@ -1146,7 +1146,7 @@ class VersionSetTestBase {
new VersionSet ( dbname_ , & db_options_ , env_options_ , table_cache_ . get ( ) ,
new VersionSet ( dbname_ , & db_options_ , env_options_ , table_cache_ . get ( ) ,
& write_buffer_manager_ , & write_controller_ ,
& write_buffer_manager_ , & write_controller_ ,
/*block_cache_tracer=*/ nullptr , /*io_tracer=*/ nullptr ,
/*block_cache_tracer=*/ nullptr , /*io_tracer=*/ nullptr ,
/*db_session_id*/ " " ) ) ;
/*db_id*/ " " , /*db_ session_id*/ " " ) ) ;
reactive_versions_ = std : : make_shared < ReactiveVersionSet > (
reactive_versions_ = std : : make_shared < ReactiveVersionSet > (
dbname_ , & db_options_ , env_options_ , table_cache_ . get ( ) ,
dbname_ , & db_options_ , env_options_ , table_cache_ . get ( ) ,
& write_buffer_manager_ , & write_controller_ , nullptr ) ;
& write_buffer_manager_ , & write_controller_ , nullptr ) ;
@ -1250,7 +1250,7 @@ class VersionSetTestBase {
new VersionSet ( dbname_ , & db_options_ , env_options_ , table_cache_ . get ( ) ,
new VersionSet ( dbname_ , & db_options_ , env_options_ , table_cache_ . get ( ) ,
& write_buffer_manager_ , & write_controller_ ,
& write_buffer_manager_ , & write_controller_ ,
/*block_cache_tracer=*/ nullptr , /*io_tracer=*/ nullptr ,
/*block_cache_tracer=*/ nullptr , /*io_tracer=*/ nullptr ,
/*db_session_id*/ " " ) ) ;
/*db_id*/ " " , /*db_ session_id*/ " " ) ) ;
EXPECT_OK ( versions_ - > Recover ( column_families_ , false ) ) ;
EXPECT_OK ( versions_ - > Recover ( column_families_ , false ) ) ;
}
}
@ -1756,7 +1756,7 @@ TEST_F(VersionSetTest, WalAddition) {
new VersionSet ( dbname_ , & db_options_ , env_options_ , table_cache_ . get ( ) ,
new VersionSet ( dbname_ , & db_options_ , env_options_ , table_cache_ . get ( ) ,
& write_buffer_manager_ , & write_controller_ ,
& write_buffer_manager_ , & write_controller_ ,
/*block_cache_tracer=*/ nullptr , /*io_tracer=*/ nullptr ,
/*block_cache_tracer=*/ nullptr , /*io_tracer=*/ nullptr ,
/*db_session_id*/ " " ) ) ;
/*db_id*/ " " , /*db_ session_id*/ " " ) ) ;
ASSERT_OK ( new_versions - > Recover ( column_families_ , /*read_only=*/ false ) ) ;
ASSERT_OK ( new_versions - > Recover ( column_families_ , /*read_only=*/ false ) ) ;
const auto & wals = new_versions - > GetWalSet ( ) . GetWals ( ) ;
const auto & wals = new_versions - > GetWalSet ( ) . GetWals ( ) ;
ASSERT_EQ ( wals . size ( ) , 1 ) ;
ASSERT_EQ ( wals . size ( ) , 1 ) ;
@ -1823,7 +1823,7 @@ TEST_F(VersionSetTest, WalCloseWithoutSync) {
new VersionSet ( dbname_ , & db_options_ , env_options_ , table_cache_ . get ( ) ,
new VersionSet ( dbname_ , & db_options_ , env_options_ , table_cache_ . get ( ) ,
& write_buffer_manager_ , & write_controller_ ,
& write_buffer_manager_ , & write_controller_ ,
/*block_cache_tracer=*/ nullptr , /*io_tracer=*/ nullptr ,
/*block_cache_tracer=*/ nullptr , /*io_tracer=*/ nullptr ,
/*db_session_id*/ " " ) ) ;
/*db_id*/ " " , /*db_ session_id*/ " " ) ) ;
ASSERT_OK ( new_versions - > Recover ( column_families_ , false ) ) ;
ASSERT_OK ( new_versions - > Recover ( column_families_ , false ) ) ;
const auto & wals = new_versions - > GetWalSet ( ) . GetWals ( ) ;
const auto & wals = new_versions - > GetWalSet ( ) . GetWals ( ) ;
ASSERT_EQ ( wals . size ( ) , 2 ) ;
ASSERT_EQ ( wals . size ( ) , 2 ) ;
@ -1876,7 +1876,7 @@ TEST_F(VersionSetTest, WalDeletion) {
new VersionSet ( dbname_ , & db_options_ , env_options_ , table_cache_ . get ( ) ,
new VersionSet ( dbname_ , & db_options_ , env_options_ , table_cache_ . get ( ) ,
& write_buffer_manager_ , & write_controller_ ,
& write_buffer_manager_ , & write_controller_ ,
/*block_cache_tracer=*/ nullptr , /*io_tracer=*/ nullptr ,
/*block_cache_tracer=*/ nullptr , /*io_tracer=*/ nullptr ,
/*db_session_id*/ " " ) ) ;
/*db_id*/ " " , /*db_ session_id*/ " " ) ) ;
ASSERT_OK ( new_versions - > Recover ( column_families_ , false ) ) ;
ASSERT_OK ( new_versions - > Recover ( column_families_ , false ) ) ;
const auto & wals = new_versions - > GetWalSet ( ) . GetWals ( ) ;
const auto & wals = new_versions - > GetWalSet ( ) . GetWals ( ) ;
ASSERT_EQ ( wals . size ( ) , 1 ) ;
ASSERT_EQ ( wals . size ( ) , 1 ) ;
@ -1914,7 +1914,7 @@ TEST_F(VersionSetTest, WalDeletion) {
new VersionSet ( dbname_ , & db_options_ , env_options_ , table_cache_ . get ( ) ,
new VersionSet ( dbname_ , & db_options_ , env_options_ , table_cache_ . get ( ) ,
& write_buffer_manager_ , & write_controller_ ,
& write_buffer_manager_ , & write_controller_ ,
/*block_cache_tracer=*/ nullptr , /*io_tracer=*/ nullptr ,
/*block_cache_tracer=*/ nullptr , /*io_tracer=*/ nullptr ,
/*db_session_id*/ " " ) ) ;
/*db_id*/ " " , /*db_ session_id*/ " " ) ) ;
ASSERT_OK ( new_versions - > Recover ( column_families_ , false ) ) ;
ASSERT_OK ( new_versions - > Recover ( column_families_ , false ) ) ;
const auto & wals = new_versions - > GetWalSet ( ) . GetWals ( ) ;
const auto & wals = new_versions - > GetWalSet ( ) . GetWals ( ) ;
ASSERT_EQ ( wals . size ( ) , 1 ) ;
ASSERT_EQ ( wals . size ( ) , 1 ) ;
@ -2032,7 +2032,7 @@ TEST_F(VersionSetTest, DeleteWalsBeforeNonExistingWalNumber) {
new VersionSet ( dbname_ , & db_options_ , env_options_ , table_cache_ . get ( ) ,
new VersionSet ( dbname_ , & db_options_ , env_options_ , table_cache_ . get ( ) ,
& write_buffer_manager_ , & write_controller_ ,
& write_buffer_manager_ , & write_controller_ ,
/*block_cache_tracer=*/ nullptr , /*io_tracer=*/ nullptr ,
/*block_cache_tracer=*/ nullptr , /*io_tracer=*/ nullptr ,
/*db_session_id*/ " " ) ) ;
/*db_id*/ " " , /*db_ session_id*/ " " ) ) ;
ASSERT_OK ( new_versions - > Recover ( column_families_ , false ) ) ;
ASSERT_OK ( new_versions - > Recover ( column_families_ , false ) ) ;
const auto & wals = new_versions - > GetWalSet ( ) . GetWals ( ) ;
const auto & wals = new_versions - > GetWalSet ( ) . GetWals ( ) ;
ASSERT_EQ ( wals . size ( ) , 1 ) ;
ASSERT_EQ ( wals . size ( ) , 1 ) ;
@ -2068,7 +2068,7 @@ TEST_F(VersionSetTest, DeleteAllWals) {
new VersionSet ( dbname_ , & db_options_ , env_options_ , table_cache_ . get ( ) ,
new VersionSet ( dbname_ , & db_options_ , env_options_ , table_cache_ . get ( ) ,
& write_buffer_manager_ , & write_controller_ ,
& write_buffer_manager_ , & write_controller_ ,
/*block_cache_tracer=*/ nullptr , /*io_tracer=*/ nullptr ,
/*block_cache_tracer=*/ nullptr , /*io_tracer=*/ nullptr ,
/*db_session_id*/ " " ) ) ;
/*db_id*/ " " , /*db_ session_id*/ " " ) ) ;
ASSERT_OK ( new_versions - > Recover ( column_families_ , false ) ) ;
ASSERT_OK ( new_versions - > Recover ( column_families_ , false ) ) ;
const auto & wals = new_versions - > GetWalSet ( ) . GetWals ( ) ;
const auto & wals = new_versions - > GetWalSet ( ) . GetWals ( ) ;
ASSERT_EQ ( wals . size ( ) , 0 ) ;
ASSERT_EQ ( wals . size ( ) , 0 ) ;
@ -2110,7 +2110,7 @@ TEST_F(VersionSetTest, AtomicGroupWithWalEdits) {
new VersionSet ( dbname_ , & db_options_ , env_options_ , table_cache_ . get ( ) ,
new VersionSet ( dbname_ , & db_options_ , env_options_ , table_cache_ . get ( ) ,
& write_buffer_manager_ , & write_controller_ ,
& write_buffer_manager_ , & write_controller_ ,
/*block_cache_tracer=*/ nullptr , /*io_tracer=*/ nullptr ,
/*block_cache_tracer=*/ nullptr , /*io_tracer=*/ nullptr ,
/*db_session_id*/ " " ) ) ;
/*db_id*/ " " , /*db_ session_id*/ " " ) ) ;
std : : string db_id ;
std : : string db_id ;
ASSERT_OK (
ASSERT_OK (
new_versions - > Recover ( column_families_ , /*read_only=*/ false , & db_id ) ) ;
new_versions - > Recover ( column_families_ , /*read_only=*/ false , & db_id ) ) ;
@ -2164,7 +2164,7 @@ class VersionSetWithTimestampTest : public VersionSetTest {
new VersionSet ( dbname_ , & db_options_ , env_options_ , table_cache_ . get ( ) ,
new VersionSet ( dbname_ , & db_options_ , env_options_ , table_cache_ . get ( ) ,
& write_buffer_manager_ , & write_controller_ ,
& write_buffer_manager_ , & write_controller_ ,
/*block_cache_tracer=*/ nullptr , /*io_tracer=*/ nullptr ,
/*block_cache_tracer=*/ nullptr , /*io_tracer=*/ nullptr ,
/*db_session_id*/ " " ) ) ;
/*db_id*/ " " , /*db_ session_id*/ " " ) ) ;
ASSERT_OK ( vset - > Recover ( column_families_ , /*read_only=*/ false ,
ASSERT_OK ( vset - > Recover ( column_families_ , /*read_only=*/ false ,
/*db_id=*/ nullptr ) ) ;
/*db_id=*/ nullptr ) ) ;
for ( auto * cfd : * ( vset - > GetColumnFamilySet ( ) ) ) {
for ( auto * cfd : * ( vset - > GetColumnFamilySet ( ) ) ) {