Skip to content

Commit

Permalink
Merge pull request #1396 from nalind/tweak-1391
Browse files Browse the repository at this point in the history
Fix lockfiles never detecting changes
  • Loading branch information
rhatdan authored Oct 18, 2022
2 parents bd3bbad + de366fc commit 77f301d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/lockfile/lockfile_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ func (l *lockfile) Modified() (bool, error) {
panic("attempted to check last-writer in lockfile without locking it first")
}
defer l.stateMutex.Unlock()
currentLW := make([]byte, len(l.lw))
currentLW := make([]byte, lastWriterIDSize)
n, err := unix.Pread(int(l.fd), currentLW, 0)
if err != nil {
return true, err
Expand Down

0 comments on commit 77f301d

Please sign in to comment.