bug in mnesia_frag.erl

Chandrashekhar Mullaparthi Chandrashekhar.Mullaparthi@REDACTED
Fri Nov 17 17:08:22 CET 2000


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)],

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:



This email (including attachments) is confidential.  If you have received
this email in error please notify the sender immediately and delete this
email from your system without copying or disseminating it or placing any
reliance upon its contents.  We cannot accept liability for any breaches of
confidence arising through use of email.  Any opinions expressed in this
email (including attachments) are those of the author and do not necessarily
reflect our opinions.  We will not accept responsibility for any commitments
made by our employees outside the scope of our business.  We do not warrant
the accuracy or completeness of such information.

More information about the erlang-questions mailing list