From 35f0daa198cfe1f1e05965f677fa4cf9153716d5 Mon Sep 17 00:00:00 2001 From: chrislu Date: Thu, 5 Jun 2025 00:19:10 -0700 Subject: [PATCH] the isFsync parameter is essentially IsAsyncWrite and it needs to be turned off if s.isStopping https://github.com/seaweedfs/seaweedfs/commit/d8c574a5ef1a811f9a0d447097d9edfcc0c1d84c#r159132764 --- weed/storage/store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/storage/store.go b/weed/storage/store.go index 2b244cf70..9bfcae7ba 100644 --- a/weed/storage/store.go +++ b/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!")