You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: windows migration panic with platform-specific atomic operations
implements platform-specific atomic file operations to handle Windows
file locking during migrations.
key changes:
- read config into memory before atomic operations to avoid file locks
- use simple write for backup (not atomic) since it's a new file
- add sync and retry logic with exponential backoff on Windows
- use MoveFileEx with MOVEFILE_REPLACE_EXISTING for atomic renames
- fix TestRepoDir to set USERPROFILE on Windows (not just HOME)
fixes the "panic: error can't be dealt with transactionally: Access
is denied" error during repo migration from v17 to v18 on Windows.
Copy file name to clipboardExpand all lines: docs/changelogs/v0.38.md
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,7 @@
5
5
This release was brought to you by the [Shipyard](https://ipshipyard.com/) team.
6
6
7
7
-[v0.38.0](#v0380)
8
+
-[v0.38.1](#v0381)
8
9
9
10
## v0.38.0
10
11
@@ -290,3 +291,26 @@ The new [`Internal.MFSNoFlushLimit`](https://github.com/ipfs/kubo/blob/master/do
290
291
| Jakub Sztandera | 1 | +67/-15 | 3 |
291
292
| Masih H. Derkani | 1 | +1/-2 | 2 |
292
293
| Dominic Della Valle | 1 | +2/-1 | 1 |
294
+
295
+
## v0.38.1
296
+
297
+
This patch release fixes a critical issue on Windows where repository migrations from version 17 to 18 would fail with "panic: error can't be dealt with transactionally: Access is denied."
298
+
299
+
The issue was caused by Windows file locking semantics preventing atomic file operations during the migration. This release implements platform-specific file handling with retry logic to work around Windows file system limitations.
300
+
301
+
### Changelog
302
+
303
+
<details>
304
+
<summary>Full Changelog</summary>
305
+
306
+
- github.com/ipfs/kubo:
307
+
- fix: windows migration panic with platform-specific atomic file operations
308
+
- fix: add sync and retry logic for Windows file operations to handle transient locks
0 commit comments