<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi ... All,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Below transection failed with {aborted,
nested_transaction} on fragmented table.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> RestoreFun = fun(DbRestoreFile)
-><BR> mnesia:restore(DbRestoreFile,[]) <BR> end,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>mnesia:activity(transaction, RestoreFun,
[DBRestoreFileName], mnesia_frag) </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2>But .....</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>mnesia:restore(DBRestoreFileName,[])</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>works fine WITHOUT</FONT></DIV>
<DIV><FONT face=Arial
size=2>mnesia:activity(transaction,...,mnesia_frag) </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2>I have used </FONT><FONT face=Arial
size=2>mnesia:activity(transaction,...,mnesia_frag) for all the
transections on my fagmented table, even for mnesia:backup (as
below)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> BackupFun = fun(DbBackupFile)
-><BR> mnesia:backup(DbBackupFile)<BR> end,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> case mnesia:activity(transaction, BackupFun,
[DbBckFile], mnesia_frag) of<BR></FONT><FONT face=Arial
size=2>-----------------------</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>1.) so ...restoring WITHOUT
mnesia:activity(transaction,...,mnesia_frag) will make any difference in
this situation ??</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>2.) why in firstcase it gives {aborted,
nested_transaction} ???? Can't we use the mnesia:restore with
mnesia:activity(transaction,..., mnesia_frag) ???</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks in advance</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Sanjaya Vitharana</DIV></FONT></BODY></HTML>