Skip to content

Commit

Permalink
feat: change wasm guest signature (#594)
Browse files Browse the repository at this point in the history
* feat: change wasm guest signature

* chore: add discord in readme
  • Loading branch information
earayu authored Nov 29, 2024
1 parent 64ca23e commit 80b5d53
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ docker rm -f mysql-server wescale
docker network rm wescale-network
```

## Community
Join our [Discord](https://discord.com/channels/1308609231498510427/1308609231498510430) to discuss features, get help, and connect with other users.

# Features
* [Declarative-DDL.md](doc%2Ftoturial%2F14-Declarative-DDL.md)
* [OnlineDDL.md](doc%2Ftoturial%2F07-OnlineDDL.md)
Expand Down
Binary file modified endtoend/wasm/testdata/datamasking.wasm
Binary file not shown.
Binary file modified endtoend/wasm/testdata/interceptor.wasm
Binary file not shown.
6 changes: 3 additions & 3 deletions go/vt/vttablet/tabletserver/wasm_plugin_wazero.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,7 @@ func (ins *WazeroInstance) RunWASMPlugin() error {
}

instancePtr := uint64(uintptr(unsafe.Pointer(ins)))
modulePtr := uint64(uintptr(unsafe.Pointer(ins.module)))
_, err := wazeroGuestFunc.Call(ctx, instancePtr, modulePtr)
_, err := wazeroGuestFunc.Call(ctx, instancePtr)
if err != nil {
return err
}
Expand All @@ -230,7 +229,8 @@ func (ins *WazeroInstance) RunWASMPluginAfter() error {

wazeroGuestFunc := ins.instance.ExportedFunction("RunAfterExecutionOnGuest")

_, err := wazeroGuestFunc.Call(ctx)
instancePtr := uint64(uintptr(unsafe.Pointer(ins)))
_, err := wazeroGuestFunc.Call(ctx, instancePtr)
if err != nil {
return err
}
Expand Down

0 comments on commit 80b5d53

Please sign in to comment.