For all Motoko canisters with the installed version using enhanced orthogonal persistence: Keep the main memory.
For all other canisters, non-Motoko or Motoko with classical persistence: Use the None as default mode.
The support of enhanced orthogonal persistence is identified by the presence of the Wasm metadata section "enhanced-orthogonal-persistence".
NB. Replace is not recommended to be used as wasm_memory_persistence as it skips the IC safety check on orthogonal persistence.
How Has This Been Tested?
e2e test wasm_memory_persistence
Manually with Motoko EOP.
Description
Support Motoko enhanced orthogonal persistence (https://github.com/dfinity/motoko/pull/4488) with the canister upgrade option
wasm_memory_persistence
:Keep
the main memory.None
as default mode.The support of enhanced orthogonal persistence is identified by the presence of the Wasm metadata section "enhanced-orthogonal-persistence". NB.
Replace
is not recommended to be used aswasm_memory_persistence
as it skips the IC safety check on orthogonal persistence.How Has This Been Tested?
e2e test
wasm_memory_persistence
Manually with Motoko EOP.Checklist: