diff options
| author | Alexandru Scvortov <alexandru@rabbitmq.com> | 2010-08-06 10:12:02 +0100 |
|---|---|---|
| committer | Alexandru Scvortov <alexandru@rabbitmq.com> | 2010-08-06 10:12:02 +0100 |
| commit | 3718e1cf11ac13582c8122923b0526a65ab80c71 (patch) | |
| tree | f17ad120969074b672a4795c794fb91f6d368311 | |
| parent | 5b3edc173e8e1306a1a12f22da7c123e04e74ca6 (diff) | |
| download | rabbitmq-server-git-3718e1cf11ac13582c8122923b0526a65ab80c71.tar.gz | |
table columns also need to be in the same order
| -rw-r--r-- | src/rabbit_mnesia.erl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rabbit_mnesia.erl b/src/rabbit_mnesia.erl index 42b5e5021b..84c376b5cf 100644 --- a/src/rabbit_mnesia.erl +++ b/src/rabbit_mnesia.erl @@ -238,8 +238,7 @@ check_schema_integrity() -> case lists:all(fun(Tab) -> {_, TabDef} = proplists:lookup(Tab, TabDefs), {_, ExpAttrs} = proplists:lookup(attributes, TabDef), - Attrs = mnesia:table_info(Tab, attributes), - lists:usort(ExpAttrs) == lists:usort(Attrs) + ExpAttrs == mnesia:table_info(Tab, attributes) end, table_names()) of true -> ok; false -> {error, database_tables_incompatible} |
