You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2025/04/25 18:06:58 UTC

(couchdb) 01/02: silently ignore missing checkpoint

This is an automated email from the ASF dual-hosted git repository.

rnewson pushed a commit to branch auto-delete-3
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 535ce1bb7ab2572b7075fe9e9995dce7d7f400a3
Author: Robert Newson <rn...@apache.org>
AuthorDate: Fri Apr 25 18:05:41 2025 +0100

    silently ignore missing checkpoint
---
 src/fabric/src/fabric_drop_seq.erl | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/fabric/src/fabric_drop_seq.erl b/src/fabric/src/fabric_drop_seq.erl
index 360ca1422..1ba2c6c62 100644
--- a/src/fabric/src/fabric_drop_seq.erl
+++ b/src/fabric/src/fabric_drop_seq.erl
@@ -357,8 +357,8 @@ update_peer_checkpoint_doc(DbName, Subtype, Source, PeerId, UpdateSeq) when
         of
             {ok, Doc} ->
                 exit({ok, Doc});
-            {not_found, Reason} ->
-                throw({peer_checkpoint_missing, Reason});
+            {not_found, _Reason} ->
+                exit(not_found);
             {error, Reason} ->
                 throw({checkpoint_fetch_failure, Reason})
         end
@@ -381,6 +381,8 @@ update_peer_checkpoint_doc(DbName, Subtype, Source, PeerId, UpdateSeq) when
                 {'DOWN', UpdateRef, _, _, Else} ->
                     Else
             end;
+        {'DOWN', OpenRef, _, _, not_found} ->
+            ok;
         {'DOWN', OpenRef, _, _, Else} ->
             Else
     end.