You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2017/10/05 17:22:52 UTC

[1/2] couchdb-ioq git commit: Use couch_rand compatibility module

Repository: couchdb-ioq
Updated Branches:
  refs/heads/master 1d2b149ee -> 04bebb3f9


Use couch_rand compatibility module


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

Branch: refs/heads/master
Commit: 345804ce4d34786acbf0f498a93eac7013a2b0b5
Parents: 1d2b149
Author: Nick Vatamaniuc <va...@apache.org>
Authored: Thu Oct 5 12:05:28 2017 -0400
Committer: Nick Vatamaniuc <va...@apache.org>
Committed: Thu Oct 5 12:05:28 2017 -0400

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


http://git-wip-us.apache.org/repos/asf/couchdb-ioq/blob/345804ce/src/ioq.erl
----------------------------------------------------------------------
diff --git a/src/ioq.erl b/src/ioq.erl
index 93377d6..9ca2656 100644
--- a/src/ioq.erl
+++ b/src/ioq.erl
@@ -136,7 +136,7 @@ make_next_request(#state{}=State) ->
         {false, true} ->
             choose_next_request(#state.compaction, State);
         {false, false} ->
-            case random:uniform() < State#state.ratio of
+            case couch_rand:uniform() < State#state.ratio of
                 true ->
                     choose_next_request(#state.compaction, State);
                 false ->


[2/2] couchdb-ioq git commit: Merge branch 'use-couch-rand-module'

Posted by va...@apache.org.
Merge branch 'use-couch-rand-module'

Fixes #6


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

Branch: refs/heads/master
Commit: 04bebb3f99b2045da0deb090afb4e6c4eacb67f5
Parents: 1d2b149 345804c
Author: Nick Vatamaniuc <va...@apache.org>
Authored: Thu Oct 5 13:22:37 2017 -0400
Committer: Nick Vatamaniuc <va...@apache.org>
Committed: Thu Oct 5 13:22:37 2017 -0400

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