bug in mnesia_frag.erl

Dan Gudmundsson <>
Mon Nov 20 09:44:50 CET 2000


Thanks, I'll take a look at it.
/Dan


Chandrashekhar Mullaparthi writes:
 > Hi,
 > 
 > There is a bug in mnesia_frag:all_keys/4
 > 
 > all_keys(ActivityId, Opaque, Tab, LockKind) ->
 >     Match = [mnesia:all_keys(ActivityId, Opaque, Frag, LockKind)
 > 	     || Frag <- frag_names(Tab)],
 >     lists:flatten(Match).
 > 
 > This function returns incorrect results when the index into a table is a
 > list. So if a table has entries with indices, [1], [2], [3], the above
 > function returns [1,2,3] instead of [[1], [2], [3]].
 > 
 > The last line should be:
 > 
 > lists:concat(Match).
 > 
 > cheers,
 > Chandru



More information about the erlang-questions mailing list