Skip to content

Commit 4406541

Browse files
committed
Wait for updated tables before update is applied.
1 parent 0f80e21 commit 4406541

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

backend/apps/automate_service_port_engine/src/automate_service_port_engine_configuration.erl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,10 @@ get_versioning(Nodes) ->
282282
{ id=7
283283
, apply=fun() ->
284284

285+
ok = mnesia:wait_for_tables([ ?USER_TO_BRIDGE_CONNECTION_TABLE
286+
, automate_service_port_channel_table
287+
], automate_configuration:get_table_wait_time()),
288+
285289
{atomic, ok} = mnesia:transform_table(
286290
?USER_TO_BRIDGE_CONNECTION_TABLE,
287291
fun({user_to_bridge_connection_entry

0 commit comments

Comments
 (0)