couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [05/19] mochiweb commit: updated refs/heads/upstream to bd6ae7c
Date Wed, 09 Sep 2015 08:42:48 GMT
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 <rok@kowalski.gd>
Authored: Thu Jul 30 00:36:01 2015 +0200
Committer: Robert Kowalski <rok@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{}}.


Mime
View raw message