diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2019-01-16 07:09:15 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-16 07:09:15 -0800 |
| commit | 123df7453f75c437c98ed12c14ad48748140563a (patch) | |
| tree | 5e98a7f62939582459b52c0ff02b956bddbd9587 /unmaintained/fix_dat/fix_dat.go | |
| parent | 7081261fca0bc795c868e2390deeb8894c0dd9a0 (diff) | |
| parent | 6ddfaf33cba953b92a5e3383a15bf26ab1845dbc (diff) | |
| download | seaweedfs-123df7453f75c437c98ed12c14ad48748140563a.tar.xz seaweedfs-123df7453f75c437c98ed12c14ad48748140563a.zip | |
Merge pull request #836 from bingoohuang/master
fix needle Append return offset to avoid uint32 overflow
Diffstat (limited to 'unmaintained/fix_dat/fix_dat.go')
| -rw-r--r-- | unmaintained/fix_dat/fix_dat.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unmaintained/fix_dat/fix_dat.go b/unmaintained/fix_dat/fix_dat.go index 90287ecd6..b26c85de6 100644 --- a/unmaintained/fix_dat/fix_dat.go +++ b/unmaintained/fix_dat/fix_dat.go @@ -10,8 +10,8 @@ import ( "github.com/chrislusf/seaweedfs/weed/glog" "github.com/chrislusf/seaweedfs/weed/storage" - "github.com/chrislusf/seaweedfs/weed/util" "github.com/chrislusf/seaweedfs/weed/storage/types" + "github.com/chrislusf/seaweedfs/weed/util" ) var ( @@ -63,7 +63,7 @@ func main() { iterateEntries(datFile, indexFile, func(n *storage.Needle, offset int64) { fmt.Printf("needle id=%v name=%s size=%d dataSize=%d\n", n.Id, string(n.Name), n.Size, n.DataSize) - s, _, e := n.Append(newDatFile, superBlock.Version()) + _, s, _, e := n.Append(newDatFile, superBlock.Version()) fmt.Printf("size %d error %v\n", s, e) }) |
