Skip to content

Commit

Permalink
Fix OPFS AHP state WAL loading
Browse files Browse the repository at this point in the history
  • Loading branch information
samwillis committed Aug 10, 2024
1 parent 1f6708a commit 54fd0dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/pglite/src/fs/opfs-ahp/opfsAhp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export class OpfsAhp {
if (typeof this[methodName as keyof this] === 'function') {
try {
const method = this[methodName as keyof this] as any
method(...entry.args)
method.bind(this)(...entry.args)
} catch (e) {
console.warn('Error applying OPFS AHP WAL entry', entry, e)
}
Expand Down

0 comments on commit 54fd0dd

Please sign in to comment.