diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-08-16 01:38:16 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-08-16 01:38:16 -0700 |
| commit | 6111b265e738fa383741569bdd2935a35fec15e6 (patch) | |
| tree | 6ae66aff637507c6cb1e5d3ef35a82a91e9dcd39 | |
| parent | 4a77f0820a4169af4de2ff882edb60ca345c3045 (diff) | |
| download | seaweedfs-6111b265e738fa383741569bdd2935a35fec15e6.tar.xz seaweedfs-6111b265e738fa383741569bdd2935a35fec15e6.zip | |
fix compilation
| -rw-r--r-- | weed/filer2/filechunks.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/weed/filer2/filechunks.go b/weed/filer2/filechunks.go index 9fd2fcbd2..d7c31bf0f 100644 --- a/weed/filer2/filechunks.go +++ b/weed/filer2/filechunks.go @@ -7,7 +7,6 @@ import ( "sort" "sync" - "github.com/chrislusf/seaweedfs/weed/glog" "github.com/chrislusf/seaweedfs/weed/pb/filer_pb" ) @@ -140,7 +139,7 @@ func ViewFromVisibleIntervals(visibles []VisibleInterval, offset int64, size int if chunkStart < chunkStop { views = append(views, &ChunkView{ FileId: chunk.fileId, - Offset: chunkStart-chunk.start, + Offset: chunkStart - chunk.start, Size: uint64(chunkStop - chunkStart), LogicOffset: chunkStart, ChunkSize: chunk.chunkSize, |
