fix(emqx_retainer): wait for Mria tables

This commit is contained in:
firest 2023-06-29 03:16:05 +00:00
parent f9ea924cd0
commit 1202bef6db
1 changed files with 1 additions and 0 deletions

View File

@ -127,6 +127,7 @@ create_table(Table, RecordName, Attributes, Type, StorageType) ->
{storage_properties, StoreProps} {storage_properties, StoreProps}
]), ]),
ok = mria_rlog:wait_for_shards([?RETAINER_SHARD], infinity), ok = mria_rlog:wait_for_shards([?RETAINER_SHARD], infinity),
ok = mria:wait_for_tables([Table]),
case mnesia:table_info(Table, storage_type) of case mnesia:table_info(Table, storage_type) of
Copies -> Copies ->
ok; ok;