diff options
| author | Chris Lu <chris.lu@gmail.com> | 2019-06-22 13:22:22 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2019-06-22 13:22:22 -0700 |
| commit | 1babec00e70fc194fa40951162db907cf0e363cd (patch) | |
| tree | c195eaa7508d9ec537478c6968f47777068959cd /weed/pb | |
| parent | cd45ab072a8dba68773f995e130798e449b1791a (diff) | |
| download | seaweedfs-1babec00e70fc194fa40951162db907cf0e363cd.tar.xz seaweedfs-1babec00e70fc194fa40951162db907cf0e363cd.zip | |
check deleted chunks faster
Diffstat (limited to 'weed/pb')
| -rw-r--r-- | weed/pb/filer_pb/filer_pb_helper.go | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/weed/pb/filer_pb/filer_pb_helper.go b/weed/pb/filer_pb/filer_pb_helper.go index ef216610b..5c40332e6 100644 --- a/weed/pb/filer_pb/filer_pb_helper.go +++ b/weed/pb/filer_pb/filer_pb_helper.go @@ -21,16 +21,6 @@ func (fid *FileId) toFileIdString() string { return needle.NewFileId(needle.VolumeId(fid.VolumeId), fid.FileKey, fid.Cookie).String() } -func ChunkEquals(this, that *FileChunk) bool { - if this.Fid == nil{ - this.Fid, _ = toFileIdObject(this.FileId) - } - if that.Fid == nil{ - that.Fid, _ = toFileIdObject(that.FileId) - } - return this.Fid.FileKey == that.Fid.FileKey && this.Fid.VolumeId == that.Fid.VolumeId && this.Fid.Cookie == that.Fid.Cookie -} - func (c *FileChunk) GetFileIdString() string { if c.FileId != "" { return c.FileId |
