Browse Source

the isFsync parameter is essentially IsAsyncWrite and it needs to be turned off if s.isStopping

d8c574a5ef (r159132764)
pull/5783/merge
chrislu 5 days ago
parent
commit
35f0daa198
  1. 2
      weed/storage/store.go

2
weed/storage/store.go

@ -441,7 +441,7 @@ func (s *Store) WriteVolumeNeedle(i needle.VolumeId, n *needle.Needle, checkCook
err = fmt.Errorf("volume %d is read only", i)
return
}
_, _, isUnchanged, err = v.writeNeedle2(n, checkCookie, fsync || s.isStopping)
_, _, isUnchanged, err = v.writeNeedle2(n, checkCookie, fsync && !s.isStopping)
return
}
glog.V(0).Infoln("volume", i, "not found!")

Loading…
Cancel
Save