diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-03-20 12:02:57 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-03-20 12:02:57 -0700 |
| commit | f6e2566ee5cce592a0fdcecaa6e217e829f8b3c0 (patch) | |
| tree | c0d2383df9510e48afdd717bade3dd05ecccfcc2 | |
| parent | 27e24162f27df87df754d7368298ce9453d8865f (diff) | |
| download | seaweedfs-f6e2566ee5cce592a0fdcecaa6e217e829f8b3c0.tar.xz seaweedfs-f6e2566ee5cce592a0fdcecaa6e217e829f8b3c0.zip | |
better logs for cookie mismatch
| -rw-r--r-- | weed/storage/volume_read_write.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/weed/storage/volume_read_write.go b/weed/storage/volume_read_write.go index 1853e458a..5251e09c0 100644 --- a/weed/storage/volume_read_write.go +++ b/weed/storage/volume_read_write.go @@ -146,7 +146,8 @@ func (v *Volume) doWriteRequest(n *needle.Needle) (offset uint64, size Size, isU return } if existingNeedle.Cookie != n.Cookie { - glog.V(0).Infof("write cookie mismatch: existing %x, new %x", existingNeedle.Cookie, n.Cookie) + glog.V(0).Infof("write cookie mismatch: existing %s, new %s", + needle.NewFileIdFromNeedle(v.Id, existingNeedle), needle.NewFileIdFromNeedle(v.Id, n)) err = fmt.Errorf("mismatching cookie %x", n.Cookie) return } |
