X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=modules%2Ferl%2Feuphorik_bd_admin.erl;h=dca6c2d22c27746cca28837dc1e79d53502a2f86;hp=037de968c2c63c0f427ef3bf7adbddff1fc400f6;hb=3c3e08ee08628398811d850f23d8494340ae8b2c;hpb=861bc33f2a9d811fd6a60b11929ef74e2404848d diff --git a/modules/erl/euphorik_bd_admin.erl b/modules/erl/euphorik_bd_admin.erl index 037de96..dca6c2d 100644 --- a/modules/erl/euphorik_bd_admin.erl +++ b/modules/erl/euphorik_bd_admin.erl @@ -289,8 +289,8 @@ patch(2) -> end, record_info(fields, minichat) ), - % comble les trous entre les id non-contigues mnesia:transaction(fun() -> + % comble les trous entre les id non-contigues lists:foreach(fun(Id) -> case mnesia:read({minichat, Id}) of [] -> @@ -300,7 +300,9 @@ patch(2) -> end end, lists:seq(1, mnesia:table_info(minichat, size)) - ) + ), + % la table troll utilise maintenant son index et pas celui de la table minichat (correction d'un vieux bug) + mnesia:write(#counter{key = troll, value = mnesia:table_info(minichat, size)}) end), creer_indexes(). % uniquement pour l'indice sur id_minichat de la table troll