Commit 5d2905f
authored
fix: respect --engine wasm in pipeline guard (#819)
* fix: respect --engine wasm in pipeline guard
The setupPipeline function called loadNative() unconditionally, so even
with --engine wasm the Rust NativeDatabase was initialized and downstream
stages entered the native fast path. Guard the call with the engine
preference so loadNative() is skipped entirely when wasm is requested.
* fix: guard reopenNativeDb against --engine wasm (#819)
Add early return in reopenNativeDb() when engine preference is 'wasm',
making the guard self-contained rather than relying solely on callers
checking hadNativeDb. Also remove internal ticket reference from comment.1 parent 592c47b commit 5d2905f
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
138 | 140 | | |
139 | 141 | | |
140 | 142 | | |
| |||
216 | 218 | | |
217 | 219 | | |
218 | 220 | | |
| 221 | + | |
219 | 222 | | |
220 | 223 | | |
221 | 224 | | |
| |||
0 commit comments