Skip to content

Commit d3c8d7f

Browse files
authored
Merge pull request #589 from powersync-ja/fix-diagnostics-app
[Diagnostics App] Fix partial checkpoints (bucket priorities)
1 parent b288aa1 commit d3c8d7f

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.changeset/cuddly-news-carry.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@powersync/diagnostics-app': patch
3+
---
4+
5+
Fix handling of partial checkpoints

tools/diagnostics-app/src/library/powersync/RecordingStorageAdapter.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@ export class RecordingStorageAdapter extends SqliteBucketStorage {
4141
});
4242
}
4343

44-
async syncLocalDatabase(checkpoint: Checkpoint) {
45-
const r = await super.syncLocalDatabase(checkpoint);
44+
async syncLocalDatabase(checkpoint: Checkpoint, priority?: number) {
45+
const r = await super.syncLocalDatabase(checkpoint, priority);
46+
4647
// Refresh schema asynchronously, to allow us to better measure
4748
// performance of initial sync.
4849
setTimeout(() => {

0 commit comments

Comments
 (0)