Commit 97ad916
authored
chore: new fields for uninstalling code while taking canister snapshot (#7855)
This PR adds two extra fields to the input type of the
`take_canister_snapshot` method of the management canister:
- `uninstall_code`: allows to atomically uninstall the canister after
taking its snapshot; in particular, the canister memory usage is updated
atomically and thus it does not grow significantly (ignoring some
potential constant overhead for certified variables which are not
accounted for by canister memory usage, but are accounted for in
canister snapshot memory usage),
- `sender_canister_version`: needed to record the sender canister
version in the code uninstallation entry in canister history.
Warning! The actual functionality will only be implemented in follow-up
PRs.1 parent f66f0b6 commit 97ad916
File tree
13 files changed
+205
-82
lines changed- rs
- execution_environment
- benches/management_canister
- src
- canister_manager
- execution_environment
- tests
- scheduler
- tests
- state_manager/tests
- types/management_canister_types
- src
- tests
13 files changed
+205
-82
lines changedLines changed: 19 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
128 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
129 | 134 | | |
130 | 135 | | |
131 | 136 | | |
| |||
135 | 140 | | |
136 | 141 | | |
137 | 142 | | |
138 | | - | |
139 | | - | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
140 | 150 | | |
141 | 151 | | |
142 | 152 | | |
| |||
157 | 167 | | |
158 | 168 | | |
159 | 169 | | |
| 170 | + | |
| 171 | + | |
160 | 172 | | |
161 | 173 | | |
162 | 174 | | |
| |||
171 | 183 | | |
172 | 184 | | |
173 | 185 | | |
| 186 | + | |
| 187 | + | |
174 | 188 | | |
175 | 189 | | |
176 | 190 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1909 | 1909 | | |
1910 | 1910 | | |
1911 | 1911 | | |
1912 | | - | |
| 1912 | + | |
1913 | 1913 | | |
1914 | 1914 | | |
1915 | 1915 | | |
| |||
6724 | 6724 | | |
6725 | 6725 | | |
6726 | 6726 | | |
| 6727 | + | |
| 6728 | + | |
6727 | 6729 | | |
6728 | 6730 | | |
6729 | 6731 | | |
| |||
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1049 | 1049 | | |
1050 | 1050 | | |
1051 | 1051 | | |
| 1052 | + | |
| 1053 | + | |
1052 | 1054 | | |
1053 | 1055 | | |
1054 | 1056 | | |
| |||
1699 | 1701 | | |
1700 | 1702 | | |
1701 | 1703 | | |
1702 | | - | |
| 1704 | + | |
| 1705 | + | |
1703 | 1706 | | |
1704 | 1707 | | |
1705 | 1708 | | |
1706 | 1709 | | |
1707 | 1710 | | |
1708 | 1711 | | |
1709 | 1712 | | |
1710 | | - | |
| 1713 | + | |
| 1714 | + | |
1711 | 1715 | | |
1712 | 1716 | | |
1713 | 1717 | | |
| |||
0 commit comments