diff options
author | Nick Marino <[email protected]> | 2013-04-24 13:55:43 -0400 |
---|---|---|
committer | Nick Marino <[email protected]> | 2013-04-24 14:05:25 -0400 |
commit | fb8cbfa5db65f4bb9dcb133de9414c78aa49d9e7 (patch) | |
tree | aaf258c19759da809acf51a6a61c6d97001e2f46 /lib | |
parent | ac9540ee6d508f707abf40dd79ebd738f4272db7 (diff) | |
download | otp-fb8cbfa5db65f4bb9dcb133de9414c78aa49d9e7.tar.gz otp-fb8cbfa5db65f4bb9dcb133de9414c78aa49d9e7.tar.bz2 otp-fb8cbfa5db65f4bb9dcb133de9414c78aa49d9e7.zip |
Fix missing case clause for ordered_set tables
The previous commit contained a regression that would trigger a crash
when attempting to add an index to an Mnesia table of type ordered_set.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mnesia/src/mnesia_index.erl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/mnesia/src/mnesia_index.erl b/lib/mnesia/src/mnesia_index.erl index 11e729f565..6f9f575d93 100644 --- a/lib/mnesia/src/mnesia_index.erl +++ b/lib/mnesia/src/mnesia_index.erl @@ -304,6 +304,7 @@ add_ram_index(Tab, Pos) when is_integer(Pos) -> SetOrBag = val({Tab, setorbag}), IndexType = case SetOrBag of set -> duplicate_bag; + ordered_set -> duplicate_bag; bag -> bag end, Index = mnesia_monitor:mktab(mnesia_index, [IndexType, public]), |