diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-08-26 08:55:15 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-08-26 08:55:15 -0700 |
| commit | d1cf39f1800f56df86bda90de0331175896a8998 (patch) | |
| tree | 1977ee602e1ba9624a521e64a1e728530578f581 | |
| parent | 912d1706e75c8d6620864ba72ff3eef415aa6c2b (diff) | |
| download | seaweedfs-d1cf39f1800f56df86bda90de0331175896a8998.tar.xz seaweedfs-d1cf39f1800f56df86bda90de0331175896a8998.zip | |
fix logging
| -rw-r--r-- | weed/storage/erasure_coding/ec_shard.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/storage/erasure_coding/ec_shard.go b/weed/storage/erasure_coding/ec_shard.go index 47e6d3d1e..0c1746f42 100644 --- a/weed/storage/erasure_coding/ec_shard.go +++ b/weed/storage/erasure_coding/ec_shard.go @@ -29,11 +29,11 @@ func NewEcVolumeShard(dirname string, collection string, id needle.VolumeId, sha // open ecd file if v.ecdFile, e = os.OpenFile(baseFileName+ToExt(int(shardId)), os.O_RDONLY, 0644); e != nil { - return nil, fmt.Errorf("cannot read ec volume shard %s.%s: %v", baseFileName, ToExt(int(shardId)), e) + return nil, fmt.Errorf("cannot read ec volume shard %s%s: %v", baseFileName, ToExt(int(shardId)), e) } ecdFi, statErr := v.ecdFile.Stat() if statErr != nil { - return nil, fmt.Errorf("can not stat ec volume shard %s.%s: %v", baseFileName, ToExt(int(shardId)), statErr) + return nil, fmt.Errorf("can not stat ec volume shard %s%s: %v", baseFileName, ToExt(int(shardId)), statErr) } v.ecdFileSize = ecdFi.Size() |
