@@ -88,7 +88,9 @@ quorum_queue_migration(_FeatureName, _FeatureProps, is_enabled) ->
88
88
rabbit_table :wait (Tables , _Retry = true ),
89
89
Fields = amqqueue :fields (amqqueue_v2 ),
90
90
mnesia :table_info (rabbit_queue , attributes ) =:= Fields andalso
91
- mnesia :table_info (rabbit_durable_queue , attributes ) =:= Fields .
91
+ mnesia :table_info (rabbit_durable_queue , attributes ) =:= Fields ;
92
+ quorum_queue_migration (_FeatureName , _FeatureProps , post_enabled_locally ) ->
93
+ ok .
92
94
93
95
stream_queue_migration (_FeatureName , _FeatureProps , _Enable ) ->
94
96
ok .
@@ -122,9 +124,12 @@ implicit_default_bindings_migration(FeatureName, _FeatureProps,
122
124
rabbit_table :wait ([rabbit_queue ]),
123
125
Queues = mnesia :dirty_all_keys (rabbit_queue ),
124
126
remove_explicit_default_bindings (FeatureName , Queues );
125
- implicit_default_bindings_migration (_Feature_Name , _FeatureProps ,
127
+ implicit_default_bindings_migration (_FeatureName , _FeatureProps ,
126
128
is_enabled ) ->
127
- undefined .
129
+ undefined ;
130
+ implicit_default_bindings_migration (_FeatureName , _FeatureProps ,
131
+ post_enabled_locally ) ->
132
+ ok .
128
133
129
134
remove_explicit_default_bindings (_FeatureName , []) ->
130
135
ok ;
@@ -150,7 +155,10 @@ virtual_host_metadata_migration(_FeatureName, _FeatureProps, enable) ->
150
155
{aborted , Reason } -> {error , Reason }
151
156
end ;
152
157
virtual_host_metadata_migration (_FeatureName , _FeatureProps , is_enabled ) ->
153
- mnesia :table_info (rabbit_vhost , attributes ) =:= vhost :fields (vhost_v2 ).
158
+ mnesia :table_info (rabbit_vhost , attributes ) =:= vhost :fields (vhost_v2 );
159
+ virtual_host_metadata_migration (
160
+ _FeatureName , _FeatureProps , post_enabled_locally ) ->
161
+ ok .
154
162
155
163
% % -------------------------------------------------------------------
156
164
% % Maintenance mode.
@@ -172,7 +180,10 @@ maintenance_mode_status_migration(FeatureName, _FeatureProps, enable) ->
172
180
[Reason ])
173
181
end ;
174
182
maintenance_mode_status_migration (_FeatureName , _FeatureProps , is_enabled ) ->
175
- rabbit_table :exists (rabbit_maintenance :status_table_name ()).
183
+ rabbit_table :exists (rabbit_maintenance :status_table_name ());
184
+ maintenance_mode_status_migration (
185
+ _FeatureName , _FeatureProps , post_enabled_locally ) ->
186
+ ok .
176
187
177
188
% % -------------------------------------------------------------------
178
189
% % User limits.
@@ -182,9 +193,14 @@ user_limits_migration(_FeatureName, _FeatureProps, enable) ->
182
193
Tab = rabbit_user ,
183
194
rabbit_table :wait ([Tab ], _Retry = true ),
184
195
Fun = fun (Row ) -> internal_user :upgrade_to (internal_user_v2 , Row ) end ,
185
- case mnesia :transform_table (Tab , Fun , internal_user :fields (internal_user_v2 )) of
196
+ Ret = mnesia :transform_table (
197
+ Tab , Fun , internal_user :fields (internal_user_v2 )),
198
+ case Ret of
186
199
{atomic , ok } -> ok ;
187
200
{aborted , Reason } -> {error , Reason }
188
201
end ;
189
202
user_limits_migration (_FeatureName , _FeatureProps , is_enabled ) ->
190
- mnesia :table_info (rabbit_user , attributes ) =:= internal_user :fields (internal_user_v2 ).
203
+ mnesia :table_info (rabbit_user , attributes ) =:=
204
+ internal_user :fields (internal_user_v2 );
205
+ user_limits_migration (_FeatureName , _FeatureProps , post_enabled_locally ) ->
206
+ ok .
0 commit comments