Basic s3 replication working

This commit is contained in:
Ben Johnson
2021-01-13 14:23:41 -07:00
parent a42f83f3cb
commit 1ac4adb272
4 changed files with 82 additions and 58 deletions

View File

@@ -569,7 +569,7 @@ func (r *FileReplica) syncWAL(ctx context.Context) (err error) {
return err
}
// Create a temporary file to write into so we don't have partial writes.
// TODO: Create a temporary file to write into so we don't have partial writes.
w, err := os.OpenFile(filename, os.O_RDWR|os.O_CREATE, 0600)
if err != nil {
return err