mirror of
https://github.com/BaaRai/ARTEX.git
synced 2026-11-25 01:10:54 +08:00
writeRemoteArchiveJournal ended with Sync on two directory handles. Windows cannot flush a directory handle, so the journal write failed there and no remote archive or remote deletion could start. Move the directory sync to syncDir: the unix build keeps the fsync, the other builds return nil (the journal file itself is already synced).
9 lines
290 B
Go
9 lines
290 B
Go
//go:build !unix
|
|
|
|
package server
|
|
|
|
// syncDir does nothing here: Windows does not support fsync on a directory
|
|
// handle (FlushFileBuffers fails on it), and the contents of the file written in
|
|
// the directory are already synced by the caller.
|
|
func syncDir(path string) error { return nil }
|