Skip to content

Commit

Permalink
Spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelklishin committed Feb 10, 2016
1 parent 723e6e4 commit 49a1886
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/rabbit_mnesia.erl
Original file line number Diff line number Diff line change
Expand Up @@ -460,14 +460,14 @@ init_db(ClusterNodes, NodeType, CheckOtherNodes) ->
{[], true, disc} ->
%% First disc node up
maybe_force_load(),
ok = rabbit_table:ensure_secondary_indecies(),
ok = rabbit_table:ensure_secondary_indices(),
ok;
{[_ | _], _, _} ->
%% Subsequent node in cluster, catch up
maybe_force_load(),
ok = rabbit_table:wait_for_replicated(),
ok = rabbit_table:create_local_copy(NodeType),
ok = rabbit_table:ensure_secondary_indecies()
ok = rabbit_table:ensure_secondary_indices()
end,
ensure_schema_integrity(),
rabbit_node_monitor:update_cluster_status(),
Expand Down
10 changes: 5 additions & 5 deletions src/rabbit_table.erl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
-export([create/0, create_local_copy/1, wait_for_replicated/0, wait/1,
force_load/0, is_present/0, is_empty/0, needs_default_data/0,
check_schema_integrity/0, clear_ram_only_tables/0, wait_timeout/0,
ensure_secondary_indecies/0, ensure_secondary_indecies/2]).
ensure_secondary_indices/0, ensure_secondary_indices/2]).

-include("rabbit.hrl").

Expand Down Expand Up @@ -55,7 +55,7 @@ create() ->
Tab, TabDef1, Reason}})
end
end, definitions()),
ok = rabbit_table:ensure_secondary_indecies(),
ok = rabbit_table:ensure_secondary_indices(),
ok.

%% The sequence in which we delete the schema and then the other
Expand All @@ -69,11 +69,11 @@ create_local_copy(ram) ->
create_local_copies(ram),
create_local_copy(schema, ram_copies).

ensure_secondary_indecies() ->
ensure_secondary_indecies(rabbit_tracked_connection, [vhost, username]),
ensure_secondary_indices() ->
ensure_secondary_indices(rabbit_tracked_connection, [vhost, username]),
ok.

ensure_secondary_indecies(Tab, Fields) ->
ensure_secondary_indices(Tab, Fields) ->
[mnesia:add_table_index(Tab, Field) || Field <- Fields].

wait_for_replicated() ->
Expand Down

0 comments on commit 49a1886

Please sign in to comment.