Function
cursorComplete
(after: ChangeCursor, current: ChangeCursor)
Source from the content-addressed store, hash-verified
| 273 | } |
| 274 | |
| 275 | function cursorComplete(after: ChangeCursor, current: ChangeCursor): boolean { |
| 276 | if (current.rev < after.rev) return true; |
| 277 | return current.rev === after.rev && after.path === null; |
| 278 | } |
| 279 | |
| 280 | function writeFetchCursorIfAhead(db: Database, cursor: ChangeCursor, backend?: string): void { |
| 281 | // Overlapping pulls can complete out of order, so checkpoint writes |
Tested by
no test coverage detected