Skip to content

Commit

Permalink
meh
Browse files Browse the repository at this point in the history
  • Loading branch information
mreiferson committed Jan 4, 2017
1 parent 7b2bc95 commit 38b376d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wal.go
Expand Up @@ -475,8 +475,8 @@ func (w *wal) deleteAll() error {

// sync fsyncs the current segment
func (w *wal) sync() error {
w.Lock()
defer w.Unlock()
w.metadataLock.Lock()
defer w.metadataLock.Unlock()

if w.segment == nil {
return nil
Expand Down

0 comments on commit 38b376d

Please sign in to comment.