Skip to content

Commit

Permalink
Take ref to new file moded.
Browse files Browse the repository at this point in the history
  • Loading branch information
notbdu committed Jun 18, 2020
1 parent 5295484 commit 33d6452
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dbnode/persist/fs/write.go
Original file line number Diff line number Diff line change
Expand Up @@ -352,12 +352,13 @@ func (w *writer) DeferClose() (persist.DataCloser, error) {
}
checkpointFilePath := w.checkpointFilePath
digestChecksum := w.digestFdWithDigestContents.Digest().Sum32()
newFileMode := w.newFileMode
return func() error {
return writeCheckpointFile(
checkpointFilePath,
digestChecksum,
digest.NewBuffer(),
w.newFileMode,
newFileMode,
)
}, nil
}
Expand Down

0 comments on commit 33d6452

Please sign in to comment.