diff --git a/db/db_test.cc b/db/db_test.cc index 7ee23780f..85cb37050 100644 --- a/db/db_test.cc +++ b/db/db_test.cc @@ -2351,7 +2351,9 @@ TEST_F(DBTest, GroupCommitTest) { rocksdb::SyncPoint::GetInstance()->LoadDependency( {{"WriteThread::JoinBatchGroup:BeganWaiting", - "DBImpl::WriteImpl:BeforeLeaderEnters"}}); + "DBImpl::WriteImpl:BeforeLeaderEnters"}, + {"WriteThread::AwaitState:BlockingWaiting", + "WriteThread::EnterAsBatchGroupLeader:End"}}); rocksdb::SyncPoint::GetInstance()->EnableProcessing(); // Start threads diff --git a/db/write_thread.cc b/db/write_thread.cc index 5ea7715c6..835992c8f 100644 --- a/db/write_thread.cc +++ b/db/write_thread.cc @@ -181,6 +181,7 @@ uint8_t WriteThread::AwaitState(Writer* w, uint8_t goal_mask, } if ((state & goal_mask) == 0) { + TEST_SYNC_POINT_CALLBACK("WriteThread::AwaitState:BlockingWaiting", w); state = BlockingAwaitState(w, goal_mask); }