Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changeset/wicked-rockets-add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@powersync/service-module-postgres-storage': patch
'@powersync/service-module-mongodb-storage': patch
'@powersync/service-core-tests': patch
'@powersync/service-image': patch
---

Fix rare issue of incorrect checksums on fallback after checksum query timed out.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { mongo } from '@powersync/lib-service-mongodb';
import { PowerSyncMongo } from './implementation/db.js';
import { SyncRuleDocument } from './implementation/models.js';
import { MongoPersistedSyncRulesContent } from './implementation/MongoPersistedSyncRulesContent.js';
import { MongoSyncBucketStorage } from './implementation/MongoSyncBucketStorage.js';
import { MongoSyncBucketStorage, MongoSyncBucketStorageOptions } from './implementation/MongoSyncBucketStorage.js';
import { generateSlotName } from './implementation/util.js';

export class MongoBucketStorage
Expand All @@ -31,7 +31,8 @@ export class MongoBucketStorage
db: PowerSyncMongo,
options: {
slot_name_prefix: string;
}
},
private internalOptions?: MongoSyncBucketStorageOptions
) {
super();
this.client = db.client;
Expand All @@ -49,7 +50,7 @@ export class MongoBucketStorage
if ((typeof id as any) == 'bigint') {
id = Number(id);
}
const storage = new MongoSyncBucketStorage(this, id, syncRules, slot_name);
const storage = new MongoSyncBucketStorage(this, id, syncRules, slot_name, undefined, this.internalOptions);
if (!options?.skipLifecycleHooks) {
this.iterateListeners((cb) => cb.syncStorageCreated?.(storage));
}
Expand Down
Loading