couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [05/48] mem3 commit: updated refs/heads/windsor-merge to ff02b9a
Date Fri, 01 Aug 2014 09:10:51 GMT
If two shards differ we need to sync

There's no security if two shards return different answers but it gives
us enough of a signal to know that we need to trigger a full on
synchronization.

BugzId: 18955


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

Branch: refs/heads/windsor-merge
Commit: a0d743062007113c5aa81526f4f1285c083b8daa
Parents: a77e95f
Author: Paul J. Davis <paul.joseph.davis@gmail.com>
Authored: Tue Apr 16 17:12:38 2013 -0500
Committer: Robert Newson <rnewson@apache.org>
Committed: Wed Jul 23 18:12:19 2014 +0100

----------------------------------------------------------------------
 src/mem3_sync_security.erl | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-mem3/blob/a0d74306/src/mem3_sync_security.erl
----------------------------------------------------------------------
diff --git a/src/mem3_sync_security.erl b/src/mem3_sync_security.erl
index 901b70d..9edd0ec 100644
--- a/src/mem3_sync_security.erl
+++ b/src/mem3_sync_security.erl
@@ -35,6 +35,8 @@ maybe_sync_int(#shard{name=Name}=Src, Dst) ->
                 1 -> ok;
                 2 -> go(DbName)
             end;
+        {error, no_majority} ->
+            go(DbName);
         Else ->
             Args = [DbName, Else],
             couch_log:error("Error checking security objects for ~s :: ~p", Args)


Mime
View raw message