diff options
author | gary rong <garyrong0905@gmail.com> | 2018-07-12 16:07:51 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-07-12 16:07:51 +0800 |
commit | e8824f6e7409a2064b1165c5b6cc6b2d390573ce (patch) | |
tree | 6b8a57248492cb0253c21ee87b5932ecd6cc0ab0 /vendor/github.com/syndtr/goleveldb/leveldb/storage/storage.go | |
parent | a9835c1816bc49ee54c82b4f2a5b05cbcd89881b (diff) | |
download | go-tangerine-e8824f6e7409a2064b1165c5b6cc6b2d390573ce.tar go-tangerine-e8824f6e7409a2064b1165c5b6cc6b2d390573ce.tar.gz go-tangerine-e8824f6e7409a2064b1165c5b6cc6b2d390573ce.tar.bz2 go-tangerine-e8824f6e7409a2064b1165c5b6cc6b2d390573ce.tar.lz go-tangerine-e8824f6e7409a2064b1165c5b6cc6b2d390573ce.tar.xz go-tangerine-e8824f6e7409a2064b1165c5b6cc6b2d390573ce.tar.zst go-tangerine-e8824f6e7409a2064b1165c5b6cc6b2d390573ce.zip |
vendor, ethdb: resume write operation asap (#17144)
* vendor: update leveldb
* ethdb: remove useless warning log
Diffstat (limited to 'vendor/github.com/syndtr/goleveldb/leveldb/storage/storage.go')
-rw-r--r-- | vendor/github.com/syndtr/goleveldb/leveldb/storage/storage.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vendor/github.com/syndtr/goleveldb/leveldb/storage/storage.go b/vendor/github.com/syndtr/goleveldb/leveldb/storage/storage.go index c16bce6b6..4e4a72425 100644 --- a/vendor/github.com/syndtr/goleveldb/leveldb/storage/storage.go +++ b/vendor/github.com/syndtr/goleveldb/leveldb/storage/storage.go @@ -55,6 +55,14 @@ type ErrCorrupted struct { Err error } +func isCorrupted(err error) bool { + switch err.(type) { + case *ErrCorrupted: + return true + } + return false +} + func (e *ErrCorrupted) Error() string { if !e.Fd.Zero() { return fmt.Sprintf("%v [file=%v]", e.Err, e.Fd) |