aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mnesia/src
diff options
context:
space:
mode:
authorNick Marino <[email protected]>2013-04-24 13:55:43 -0400
committerNick Marino <[email protected]>2013-04-24 14:05:25 -0400
commitfb8cbfa5db65f4bb9dcb133de9414c78aa49d9e7 (patch)
treeaaf258c19759da809acf51a6a61c6d97001e2f46 /lib/mnesia/src
parentac9540ee6d508f707abf40dd79ebd738f4272db7 (diff)
downloadotp-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/mnesia/src')
-rw-r--r--lib/mnesia/src/mnesia_index.erl1
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]),