aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mnesia/src
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2016-12-05 10:35:43 +0100
committerDan Gudmundsson <[email protected]>2016-12-05 10:35:43 +0100
commitc5fa3721bbe6ea3742703a4662f94a11c2a4d5c1 (patch)
tree1d3340f54437f3e98810d530b1c96d9e4e5d0972 /lib/mnesia/src
parent443e4c8f4345486e501b9bd3b37b9c773cdf3ba0 (diff)
parent30ea1dce5f98636315726af13a8944f0963f447a (diff)
downloadotp-c5fa3721bbe6ea3742703a4662f94a11c2a4d5c1.tar.gz
otp-c5fa3721bbe6ea3742703a4662f94a11c2a4d5c1.tar.bz2
otp-c5fa3721bbe6ea3742703a4662f94a11c2a4d5c1.zip
Merge branch 'richcarl/mnesia/table_info_order' into maint
* richcarl/mnesia/table_info_order: Preserve key order in mnesia:table_info
Diffstat (limited to 'lib/mnesia/src')
-rw-r--r--lib/mnesia/src/mnesia.erl7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/mnesia/src/mnesia.erl b/lib/mnesia/src/mnesia.erl
index 5bf2fc2dc3..34efeca4fa 100644
--- a/lib/mnesia/src/mnesia.erl
+++ b/lib/mnesia/src/mnesia.erl
@@ -1882,9 +1882,10 @@ any_table_info(Tab, Item) when is_atom(Tab) ->
[] ->
abort({no_exists, Tab, Item});
Props ->
- lists:map(fun({setorbag, Type}) -> {type, Type};
- (Prop) -> Prop end,
- Props)
+ Rename = fun ({setorbag, Type}) -> {type, Type};
+ (Prop) -> Prop
+ end,
+ lists:sort(lists:map(Rename, Props))
end;
name ->
Tab;