From f3dde99796f88559de6552579a1c548213fdbc5b Mon Sep 17 00:00:00 2001 From: chrislu Date: Thu, 5 Dec 2024 09:33:49 -0800 Subject: [PATCH] adjust error message --- weed/storage/volume_write.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/weed/storage/volume_write.go b/weed/storage/volume_write.go index 434e296d4..94496cdf6 100644 --- a/weed/storage/volume_write.go +++ b/weed/storage/volume_write.go @@ -166,9 +166,11 @@ func (v *Volume) doWriteRequest(n *needle.Needle, checkCookie bool) (offset uint // append to dat file n.UpdateAppendAtNs(v.lastAppendAtNs) - offset, size, _, err = n.Append(v.DataBackend, v.Version()) + var actualSize int64 + offset, size, actualSize, err = n.Append(v.DataBackend, v.Version()) v.checkReadWriteError(err) if err != nil { + err = fmt.Errorf("append to volume %d size %d actualSize %d: %v", v.Id, size, actualSize, err) return } v.lastAppendAtNs = n.AppendAtNs