Browse Source

Remove write optimization on ETS.

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

+ 2 - 2
src/syn_backbone.erl

@@ -62,7 +62,7 @@ create_registry_table() ->
         {type, set},
         {type, set},
         {attributes, record_info(fields, syn_registry_table)},
         {attributes, record_info(fields, syn_registry_table)},
         {index, [#syn_registry_table.pid]},
         {index, [#syn_registry_table.pid]},
-        {storage_properties, [{ets, [{read_concurrency, true}, {write_concurrency, true}]}]}
+        {storage_properties, [{ets, [{read_concurrency, true}]}]}
     ]).
     ]).
 
 
 -spec create_groups_table() -> {atomic, ok} | {aborted, Reason :: any()}.
 -spec create_groups_table() -> {atomic, ok} | {aborted, Reason :: any()}.
@@ -71,5 +71,5 @@ create_groups_table() ->
         {type, bag},
         {type, bag},
         {attributes, record_info(fields, syn_groups_table)},
         {attributes, record_info(fields, syn_groups_table)},
         {index, [#syn_groups_table.pid, #syn_groups_table.node]},
         {index, [#syn_groups_table.pid, #syn_groups_table.node]},
-        {storage_properties, [{ets, [{read_concurrency, true}, {write_concurrency, true}]}]}
+        {storage_properties, [{ets, [{read_concurrency, true}]}]}
     ]).
     ]).