(db: Database, path: string, now: () => number)
| 724 | * committed. External callers should never invoke this directly. |
| 725 | */ |
| 726 | export function flushPendingByPath(db: Database, path: string, now: () => number): boolean { |
| 727 | const { path: canonical } = canonicalizePath(path); |
| 728 | const entry = getPendingWriteBufferByPath(db, canonical); |
| 729 | if (entry === undefined || entry.pending === undefined) return false; |
| 730 | commitPendingBuffer(db, entry, now); |
| 731 | return true; |
| 732 | } |
| 733 | |
| 734 | function releasePendingBuffer(db: Database, entry: WriteBufferEntry, now: () => number): void { |
| 735 | if (entry.pending === undefined) return; |
no test coverage detected