aboutsummaryrefslogtreecommitdiff
path: root/unmaintained/see_dat
diff options
context:
space:
mode:
authorwusong <75450248+wusongANKANG@users.noreply.github.com>2023-06-08 03:15:19 +0800
committerGitHub <noreply@github.com>2023-06-07 12:15:19 -0700
commit670e2185e4e4a69ce9c55bf0cc843423526a5f40 (patch)
tree5672990a1d9c08445307a1c4bef33b74301b312e /unmaintained/see_dat
parentd6af3a8eb696c192325cda4f5e522f799c3b6188 (diff)
downloadseaweedfs-670e2185e4e4a69ce9c55bf0cc843423526a5f40.tar.xz
seaweedfs-670e2185e4e4a69ce9c55bf0cc843423526a5f40.zip
fix: fid mismatch (#4554)
Co-authored-by: wang wusong <wangwusong@virtaitech.com>
Diffstat (limited to 'unmaintained/see_dat')
-rw-r--r--unmaintained/see_dat/see_dat.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/unmaintained/see_dat/see_dat.go b/unmaintained/see_dat/see_dat.go
index 8ac773223..61ce9428d 100644
--- a/unmaintained/see_dat/see_dat.go
+++ b/unmaintained/see_dat/see_dat.go
@@ -2,9 +2,10 @@ package main
import (
"flag"
- "github.com/seaweedfs/seaweedfs/weed/util"
"time"
+ "github.com/seaweedfs/seaweedfs/weed/util"
+
"github.com/seaweedfs/seaweedfs/weed/glog"
"github.com/seaweedfs/seaweedfs/weed/storage"
"github.com/seaweedfs/seaweedfs/weed/storage/needle"
@@ -32,7 +33,7 @@ func (scanner *VolumeFileScanner4SeeDat) ReadNeedleBody() bool {
func (scanner *VolumeFileScanner4SeeDat) VisitNeedle(n *needle.Needle, offset int64, needleHeader, needleBody []byte) error {
t := time.Unix(int64(n.AppendAtNs)/int64(time.Second), int64(n.AppendAtNs)%int64(time.Second))
- glog.V(0).Infof("%d,%s%x offset %d size %d(%s) cookie %x appendedAt %v",
+ glog.V(0).Infof("%d,%s%08x offset %d size %d(%s) cookie %08x appendedAt %v",
*volumeId, n.Id, n.Cookie, offset, n.Size, util.BytesToHumanReadable(uint64(n.Size)), n.Cookie, t)
return nil
}