File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -3816,6 +3816,8 @@ where
3816
3816
///
3817
3817
/// Expects the caller to have a total_consistency_lock read lock.
3818
3818
fn process_background_events ( & self ) -> NotifyOption {
3819
+ debug_assert_ne ! ( self . total_consistency_lock. held_by_thread( ) , LockHeldState :: NotHeldByThread ) ;
3820
+
3819
3821
#[ cfg( debug_assertions) ]
3820
3822
self . background_events_processed_since_startup . store ( true , Ordering :: Release ) ;
3821
3823
@@ -3865,6 +3867,7 @@ where
3865
3867
#[ cfg( any( test, feature = "_test_utils" ) ) ]
3866
3868
/// Process background events, for functional testing
3867
3869
pub fn test_process_background_events ( & self ) {
3870
+ let _lck = self . total_consistency_lock . read ( ) . unwrap ( ) ;
3868
3871
let _ = self . process_background_events ( ) ;
3869
3872
}
3870
3873
You can’t perform that action at this time.
0 commit comments