You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2015/09/09 10:42:48 UTC

[05/19] mochiweb commit: updated refs/heads/upstream to bd6ae7c

optimize for read concurrency


Project: http://git-wip-us.apache.org/repos/asf/couchdb-mochiweb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-mochiweb/commit/b7aff437
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-mochiweb/tree/b7aff437
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-mochiweb/diff/b7aff437

Branch: refs/heads/upstream
Commit: b7aff43702abfbee2a8d1503b2204caaf0791f3d
Parents: 8ab7682
Author: Robert Kowalski <ro...@kowalski.gd>
Authored: Thu Jul 30 00:36:01 2015 +0200
Committer: Robert Kowalski <ro...@kowalski.gd>
Committed: Thu Jul 30 00:36:01 2015 +0200

----------------------------------------------------------------------
 src/mochiweb_clock.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-mochiweb/blob/b7aff437/src/mochiweb_clock.erl
----------------------------------------------------------------------
diff --git a/src/mochiweb_clock.erl b/src/mochiweb_clock.erl
index 8762770..12381a0 100644
--- a/src/mochiweb_clock.erl
+++ b/src/mochiweb_clock.erl
@@ -65,7 +65,7 @@ rfc1123() ->
 
 -spec init([]) -> {ok, #state{}}.
 init([]) ->
-    ?MODULE = ets:new(?MODULE, [named_table, protected]),
+    ?MODULE = ets:new(?MODULE, [named_table, protected, {read_concurrency, true}]),
     handle_info(update_date, #state{}),
     timer:send_interval(1000, update_date),
     {ok, #state{}}.