aboutsummaryrefslogtreecommitdiff
path: root/src/leveldb/table/format.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/leveldb/table/format.cc')
-rw-r--r--src/leveldb/table/format.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/leveldb/table/format.cc b/src/leveldb/table/format.cc
index cda1decdf3..aa63144c9e 100644
--- a/src/leveldb/table/format.cc
+++ b/src/leveldb/table/format.cc
@@ -48,7 +48,7 @@ Status Footer::DecodeFrom(Slice* input) {
const uint64_t magic = ((static_cast<uint64_t>(magic_hi) << 32) |
(static_cast<uint64_t>(magic_lo)));
if (magic != kTableMagicNumber) {
- return Status::InvalidArgument("not an sstable (bad magic number)");
+ return Status::Corruption("not an sstable (bad magic number)");
}
Status result = metaindex_handle_.DecodeFrom(input);