orez-sync-cf-host 0.5.5 → 0.5.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/generated/sync_wasm_bg.wasm +0 -0
- package/src/host.ts +5 -1
package/package.json
CHANGED
|
Binary file
|
package/src/host.ts
CHANGED
|
@@ -715,7 +715,11 @@ export function createSyncDurableObject<Env extends SyncHostEnv>(
|
|
|
715
715
|
})
|
|
716
716
|
}
|
|
717
717
|
if (result.caughtUp) break
|
|
718
|
-
|
|
718
|
+
// a page can legitimately apply zero rows while still advancing the
|
|
719
|
+
// watermark: the engine consumes changes for tables this host does not
|
|
720
|
+
// model (subset replica) without materializing them. only a page that
|
|
721
|
+
// neither applied nor advanced is genuinely stalled.
|
|
722
|
+
if (result.applied === 0 && String(nextCursor) === String(cursor)) {
|
|
719
723
|
this.#tripIngest('ingestCursorStalled', {
|
|
720
724
|
phase: 'changes',
|
|
721
725
|
cursor,
|