Skip to content

Commit

Permalink
Fix OPFS AHP state WAL loading (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
samwillis authored Aug 10, 2024
1 parent c1dfe9c commit df5951b
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

1 comment on commit df5951b

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.