aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mnesia
diff options
context:
space:
mode:
authorRichard Carlsson <[email protected]>2016-11-18 15:48:43 +0100
committerRichard Carlsson <[email protected]>2016-11-18 15:48:43 +0100
commit30ea1dce5f98636315726af13a8944f0963f447a (patch)
tree799621dee9c048983954aa949773575d61afe062 /lib/mnesia
parent4683b5c227a238ee27f658bdfe2981c4b69acf09 (diff)
downloadotp-30ea1dce5f98636315726af13a8944f0963f447a.tar.gz
otp-30ea1dce5f98636315726af13a8944f0963f447a.tar.bz2
otp-30ea1dce5f98636315726af13a8944f0963f447a.zip
Preserve key order in mnesia:table_info
Diffstat (limited to 'lib/mnesia')
-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;