Updated Branches: refs/heads/1259-stable_replication_ids dbd1e19e0 -> ae798352d (forced update)
Ensure uuid is generated before port is bound Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/ae798352 Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/ae798352 Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/ae798352 Branch: refs/heads/1259-stable_replication_ids Commit: ae798352d1aad67355bfee6828d9ddd0546591c4 Parents: 39fe998 Author: Robert Newson <[email protected]> Authored: Wed Nov 14 10:31:00 2012 +0000 Committer: Robert Newson <[email protected]> Committed: Wed Nov 14 10:34:39 2012 +0000 ---------------------------------------------------------------------- src/couchdb/couch_httpd.erl | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb/blob/ae798352/src/couchdb/couch_httpd.erl ---------------------------------------------------------------------- diff --git a/src/couchdb/couch_httpd.erl b/src/couchdb/couch_httpd.erl index 3774b85..ba28ffd 100644 --- a/src/couchdb/couch_httpd.erl +++ b/src/couchdb/couch_httpd.erl @@ -128,6 +128,10 @@ start_link(Name, Options) -> set_auth_handlers(), + % ensure uuid is set so that concurrent replications + % get the same value. + couch_server:get_uuid(), + Loop = fun(Req)-> case SocketOptions of [] ->
