Commit 1bc8478
committed
Use exists() instead of parsing JSON for snapshot write-once check
The write-once guard in snapshot_base_manifest() was opening and JSON-parsing
the snapshot file just to check if it exists. Use build_media_storage.exists()
(S3 HEAD request) instead — cheaper and clearer intent.
https://claude.ai/code/session_01FgTyr1d9mpwms8emHGNAQf1 parent f3b67ea commit 1bc8478
File tree
2 files changed
+8
-22
lines changed- readthedocs/filetreediff
- tests
2 files changed
+8
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
181 | 185 | | |
182 | 186 | | |
183 | 187 | | |
184 | 188 | | |
185 | 189 | | |
186 | 190 | | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| 237 | + | |
237 | 238 | | |
238 | | - | |
| 239 | + | |
239 | 240 | | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | 241 | | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
| 242 | + | |
0 commit comments