From 604fd8f4bb95fbf9cb42ff33e094db3ba1f690ab Mon Sep 17 00:00:00 2001 From: "Damien F. Katz" Date: Thu, 12 Feb 2009 16:48:01 +0000 Subject: Fix for spurious 'server restarted' during replication git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@743801 13f79535-47bb-0310-9956-ffa450edef68 --- src/couchdb/couch_rep.erl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/couchdb') diff --git a/src/couchdb/couch_rep.erl b/src/couchdb/couch_rep.erl index ff926584..0e7c1012 100644 --- a/src/couchdb/couch_rep.erl +++ b/src/couchdb/couch_rep.erl @@ -71,8 +71,11 @@ replicate2(Source, DbSrc, Target, DbTgt, Options) -> ReplicationStartTime = httpd_util:rfc1123_date(), - {ok, SrcInstanceStartTime} = get_db_info(DbSrc), - {ok, TgtInstanceStartTime} = get_db_info(DbTgt), + {ok, InfoSrc} = get_db_info(DbSrc), + {ok, InfoTgt} = get_db_info(DbTgt), + + SrcInstanceStartTime = proplists:get_value(instance_start_time, InfoSrc), + TgtInstanceStartTime = proplists:get_value(instance_start_time, InfoTgt), case proplists:get_value(full, Options, false) orelse proplists:get_value("full", Options, false) of -- cgit v1.2.3