Skip to content

Commit

Permalink
Remove accidental dep on dgraph's x pkg.
Browse files Browse the repository at this point in the history
  • Loading branch information
manishrjain committed Jan 20, 2019
1 parent 2017987 commit 0dcee33
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions table/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ import (
"github.com/AndreasBriese/bbloom"
"github.com/dgraph-io/badger/options"
"github.com/dgraph-io/badger/y"
"github.com/dgraph-io/dgraph/x"
"github.com/pkg/errors"
)

Expand Down Expand Up @@ -149,7 +148,7 @@ func OpenTable(fd *os.File, mode options.FileLoadingMode, cksum []byte) (*Table,
// Enforce checksum before we read index. Otherwise, if the file was
// truncated, we'd end up with panics in readIndex.
if len(cksum) > 0 && !bytes.Equal(t.Checksum, cksum) {
return nil, x.Errorf(
return nil, fmt.Errorf(
"CHECKSUM_MISMATCH: Table checksum does not match checksum in MANIFEST."+
" NOT including table %s. This would lead to missing data."+
"\n sha256 %x Expected\n sha256 %x Found\n", filename, cksum, t.Checksum)
Expand Down

0 comments on commit 0dcee33

Please sign in to comment.