Commit f66f0b6
authored
refactor: drop AddCanisterChangeToHistory enum (#7860)
This PR drops the `AddCanisterChangeToHistory` enum by inlining the
canister history update to `CanisterManager::uninstall_code`.
The motivation for this change is to decouple `RoundLimits` update due
to uninstalling code and due to updating canister history: those steps
will be performed separately (in a follow-up PR) when taking a canister
snapshot and uninstalling its code atomically (and thus setting
`RoundLimits` to `None` would conveniently skip the `RoundLimits` update
in the helper function `uninstall_canister`).1 parent e5e0d13 commit f66f0b6
File tree
4 files changed
+17
-33
lines changed- rs/execution_environment/src
- canister_manager
4 files changed
+17
-33
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
966 | 966 | | |
967 | 967 | | |
968 | 968 | | |
969 | | - | |
970 | 969 | | |
971 | 970 | | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
972 | 981 | | |
973 | 982 | | |
974 | 983 | | |
975 | 984 | | |
976 | 985 | | |
977 | 986 | | |
978 | 987 | | |
| 988 | + | |
979 | 989 | | |
980 | 990 | | |
981 | 991 | | |
| |||
3109 | 3119 | | |
3110 | 3120 | | |
3111 | 3121 | | |
3112 | | - | |
| 3122 | + | |
3113 | 3123 | | |
3114 | | - | |
3115 | 3124 | | |
3116 | 3125 | | |
3117 | 3126 | | |
| |||
3136 | 3145 | | |
3137 | 3146 | | |
3138 | 3147 | | |
3139 | | - | |
| 3148 | + | |
3140 | 3149 | | |
3141 | 3150 | | |
3142 | 3151 | | |
| |||
3145 | 3154 | | |
3146 | 3155 | | |
3147 | 3156 | | |
3148 | | - | |
3149 | | - | |
3150 | | - | |
3151 | | - | |
3152 | | - | |
3153 | | - | |
3154 | | - | |
3155 | | - | |
3156 | | - | |
3157 | | - | |
3158 | | - | |
3159 | | - | |
3160 | | - | |
3161 | | - | |
3162 | | - | |
3163 | | - | |
3164 | 3157 | | |
3165 | 3158 | | |
3166 | 3159 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
2286 | 2286 | | |
2287 | 2287 | | |
2288 | 2288 | | |
2289 | | - | |
2290 | 2289 | | |
2291 | 2290 | | |
2292 | 2291 | | |
| |||
2313 | 2312 | | |
2314 | 2313 | | |
2315 | 2314 | | |
2316 | | - | |
2317 | 2315 | | |
2318 | 2316 | | |
2319 | 2317 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | 319 | | |
326 | 320 | | |
327 | 321 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
934 | 934 | | |
935 | 935 | | |
936 | 936 | | |
937 | | - | |
938 | 937 | | |
939 | 938 | | |
940 | 939 | | |
| |||
0 commit comments