@@ -545,7 +545,7 @@ public void MaybeDeleteRecordedAutoDeleteExchange(string exchange)
545
545
// if it is auto-deleted. See bug 26364.
546
546
if ( ( rx != null ) && rx . IsAutoDelete )
547
547
{
548
- _recordedExchanges . Remove ( exchange ) ;
548
+ DeleteRecordedExchange ( exchange ) ;
549
549
}
550
550
}
551
551
}
@@ -562,7 +562,7 @@ public void MaybeDeleteRecordedAutoDeleteQueue(string queue)
562
562
// if it is auto-deleted. See bug 26364.
563
563
if ( ( rq != null ) && rq . IsAutoDelete )
564
564
{
565
- _recordedQueues . Remove ( queue ) ;
565
+ DeleteRecordedQueue ( queue ) ;
566
566
}
567
567
}
568
568
}
@@ -900,7 +900,7 @@ private void HandleTopologyRecoveryException(TopologyRecoveryException e)
900
900
901
901
private void PropagateQueueNameChangeToBindings ( string oldName , string newName )
902
902
{
903
- lock ( _recordedBindings )
903
+ lock ( _recordedEntitiesLock )
904
904
{
905
905
foreach ( RecordedBinding b in _recordedBindings . Keys )
906
906
{
@@ -929,7 +929,7 @@ private void PropagateQueueNameChangeToConsumers(string oldName, string newName)
929
929
private void RecoverBindings ( )
930
930
{
931
931
Dictionary < RecordedBinding , byte > recordedBindingsCopy ;
932
- lock ( _recordedBindings )
932
+ lock ( _recordedEntitiesLock )
933
933
{
934
934
recordedBindingsCopy = new Dictionary < RecordedBinding , byte > ( _recordedBindings ) ;
935
935
}
0 commit comments