diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-06-26 17:21:11 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-26 17:21:11 +0800 |
commit | fdf2184b1ecc48c6f2e106dd8cff85ec1765e998 (patch) | |
tree | af10624e7999af471facb60fcf1d00686f1e81da | |
parent | 3c7338d6c86cee5769d16c49bba3ef57b722e971 (diff) | |
parent | caa00b7e6d0dcb0429ef83ae993a2656abde9b60 (diff) | |
download | dexon-fdf2184b1ecc48c6f2e106dd8cff85ec1765e998.tar dexon-fdf2184b1ecc48c6f2e106dd8cff85ec1765e998.tar.gz dexon-fdf2184b1ecc48c6f2e106dd8cff85ec1765e998.tar.bz2 dexon-fdf2184b1ecc48c6f2e106dd8cff85ec1765e998.tar.lz dexon-fdf2184b1ecc48c6f2e106dd8cff85ec1765e998.tar.xz dexon-fdf2184b1ecc48c6f2e106dd8cff85ec1765e998.tar.zst dexon-fdf2184b1ecc48c6f2e106dd8cff85ec1765e998.zip |
Merge pull request #14697 from homotopycolimit/master
swarm/storage: remove panic on invalid chunk
-rw-r--r-- | swarm/storage/dbstore.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/swarm/storage/dbstore.go b/swarm/storage/dbstore.go index 30925a919..31ff5b64e 100644 --- a/swarm/storage/dbstore.go +++ b/swarm/storage/dbstore.go @@ -399,7 +399,7 @@ func (s *DbStore) Get(key Key) (chunk *Chunk, err error) { hash := hasher.Sum(nil) if !bytes.Equal(hash, key) { s.delete(index.Idx, getIndexKey(key)) - panic("Invalid Chunk in Database. Please repair with command: 'swarm cleandb'") + log.Warn("Invalid Chunk in Database. Please repair with command: 'swarm cleandb'") } chunk = &Chunk{ |