diff options
| author | Alexandru Scvortov <alexandru@rabbitmq.com> | 2010-08-06 10:05:21 +0100 |
|---|---|---|
| committer | Alexandru Scvortov <alexandru@rabbitmq.com> | 2010-08-06 10:05:21 +0100 |
| commit | 5b3edc173e8e1306a1a12f22da7c123e04e74ca6 (patch) | |
| tree | 8e6289c105f72e024374ab3db471e786eb32b1b1 /src | |
| parent | 50a18a89fdd0fa19cb7d407117275284a8111759 (diff) | |
| download | rabbitmq-server-git-5b3edc173e8e1306a1a12f22da7c123e04e74ca6.tar.gz | |
tables are compatible only if they have exactly same attributes
Diffstat (limited to 'src')
| -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 d6a5f3cbac..42b5e5021b 100644 --- a/src/rabbit_mnesia.erl +++ b/src/rabbit_mnesia.erl @@ -239,8 +239,7 @@ check_schema_integrity() -> {_, TabDef} = proplists:lookup(Tab, TabDefs), {_, ExpAttrs} = proplists:lookup(attributes, TabDef), Attrs = mnesia:table_info(Tab, attributes), - sets:is_subset(sets:from_list(ExpAttrs), - sets:from_list(Attrs)) + lists:usort(ExpAttrs) == lists:usort(Attrs) end, table_names()) of true -> ok; false -> {error, database_tables_incompatible} |
