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

jan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pouchdb.git

commit 1d7c9354fd3bdbc187326f8b011870f184cb3ff8
Author: ems <[email protected]>
AuthorDate: Thu Jan 22 19:04:56 2026 +0100

    fix getCheckpoint 404 handling on iinitial replication
---
 packages/node_modules/pouchdb-checkpointer/src/index.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/packages/node_modules/pouchdb-checkpointer/src/index.js 
b/packages/node_modules/pouchdb-checkpointer/src/index.js
index 74253c731..68e7fa9eb 100644
--- a/packages/node_modules/pouchdb-checkpointer/src/index.js
+++ b/packages/node_modules/pouchdb-checkpointer/src/index.js
@@ -193,6 +193,10 @@ class CheckpointerInternal {
           return LOWEST_SEQ;
         }
       }
+      //missing sourceDoc on initial replication returns LOWEST_SEQ
+      if (err.status === 404) {
+        return LOWEST_SEQ;
+      }
       throw err;
     }
   }

Reply via email to