Browse Source

Use ordered_set everywhere.

Roberto Ostinelli 5 years ago
parent
commit
e22b6b9b81
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/syn_backbone.erl

+ 1 - 1
src/syn_backbone.erl

@@ -106,7 +106,7 @@ get_anti_entropy_settings(Module) ->
 init([]) ->
 init([]) ->
     %% create ETS tables
     %% create ETS tables
     %% entries have structure {Name, Pid, Meta, Clock, MonitorRef, Node}
     %% entries have structure {Name, Pid, Meta, Clock, MonitorRef, Node}
-    ets:new(syn_registry_by_name, [set, public, named_table, {read_concurrency, true}, {write_concurrency, true}]),
+    ets:new(syn_registry_by_name, [ordered_set, public, named_table, {read_concurrency, true}, {write_concurrency, true}]),
     %% entries have format {{Pid, Name}, Meta, Clock, MonitorRef, Node}
     %% entries have format {{Pid, Name}, Meta, Clock, MonitorRef, Node}
     ets:new(syn_registry_by_pid, [ordered_set, public, named_table, {read_concurrency, true}, {write_concurrency, true}]),
     ets:new(syn_registry_by_pid, [ordered_set, public, named_table, {read_concurrency, true}, {write_concurrency, true}]),
     %% entries have format {{GroupName, Pid}, Meta, MonitorRef, Node}
     %% entries have format {{GroupName, Pid}, Meta, MonitorRef, Node}