Skip to content

Commit fcd539d

Browse files
committed
Quick workaround for now.
1 parent be3390a commit fcd539d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

modules/module-mongodb-storage/src/storage/implementation/MongoBucketBatch.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -817,6 +817,16 @@ export class MongoBucketBatch
817817
return false;
818818
}
819819

820+
if (this.persisted_op == null) {
821+
// FIXME: Double-check the logic here, and avoid the lookup
822+
const doc = await this.db.sync_rules.findOne({
823+
_id: this.group_id
824+
});
825+
if (doc?.keepalive_op != null) {
826+
this.persisted_op = BigInt(doc!.keepalive_op);
827+
}
828+
}
829+
820830
if (this.persisted_op != null) {
821831
// The commit may have been skipped due to "no_checkpoint_before_lsn".
822832
// Apply it now if relevant

0 commit comments

Comments
 (0)