Hello.<br><br>I often find myself using mnesia:wait_for_tables/2 to ensure that all newly created tables are ready to use:<br><br>create_tables() -><br>    % At this point mnesia is already started<br>    mnesia:create_table(foo,   [{attributes, record_info(fields, foo)}]),<br>
    mnesia:create_table(bar,   [{attributes, record_info(fields, bar)}]),<br>    mnesia:wait_for_tables([foo, bar], 20000).<br clear="all"><br>Is it necessary to wait here?<br><br>I started doubting this habbit after I had read that "all schema manipulation functions are implemented with normal transaction management system" in mnesia man. As I know, any function involving standard transaction mechanism returns when all things are completely done, so wait_for_tables can be (can it be?) safety removed here.<br>
<br>-- <br>Sergey Samokhin<br>