-
Notifications
You must be signed in to change notification settings - Fork 368
feat(canister_logging): add log_memory_store to system_state #7939
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| // 8 | 0 | N/A | canister_states/00000000000000c80101/vmemory_0.bin | ||
| // 9 | 0 | N/A | canister_states/00000000000000c80101/wasm_chunk_store.bin | ||
| // 10 | 97 | 4 | system_metadata.pbuf | ||
| // 0 | 0 | 0 | canister_states/00000000000000640101/log_memory_store.overlay |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think they are the wrong way around, as they are meant to be sorted. So canister.pbuf should be 0, and log_memory_store should be 1. But either way software.wasm is gonna be 2, so the actual code change makes sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, they are sorted, but log memory store files have some prefixes with zeros:
file_idx | file_size | chunk_idx | path
0 | 4132 | 0 | "canister_states/00000000000000640101/0000000000000001_0000_log_memory_store.overlay"
1 | 342 | 1 | "canister_states/00000000000000640101/canister.pbuf"
2 | 18 | 2 | "canister_states/00000000000000640101/software.wasm"
3 | 4132 | 3 | "canister_states/00000000000000c80101/0000000000000001_0000_log_memory_store.overlay"
4 | 342 | 4 | "canister_states/00000000000000c80101/canister.pbuf"
5 | 18 | 5 | "canister_states/00000000000000c80101/software.wasm"
6 | 98 | 6 | "system_metadata.pbuf"
|
|
||
| env.tick(); | ||
| assert_eq!(page_maps_by_status("loaded", &env), 0); | ||
| assert_eq!(page_maps_by_status("loaded", &env), 1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI: This is probably due to the fact that log memory store initializes the 1 page header.
No description provided.