Skip to content

Commit

Permalink
Add tag number to panic
Browse files Browse the repository at this point in the history
Signed-off-by: Yang Zhang <yang.zhang@pingcap.com>
  • Loading branch information
v01dstar committed Oct 29, 2024
1 parent ee26b5c commit 069892b
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions db/version_edit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@

namespace ROCKSDB_NAMESPACE {

namespace {

} // anonymous namespace
namespace {} // anonymous namespace

uint64_t PackFileNumberAndPathId(uint64_t number, uint64_t path_id) {
assert(number <= kFileNumberMask);
Expand Down Expand Up @@ -501,8 +499,7 @@ Status VersionEdit::DecodeFrom(const Slice& src) {
break;

case kCompactPointer:
if (GetLevel(&input, &level, &msg) &&
GetInternalKey(&input, &key)) {
if (GetLevel(&input, &level, &msg) && GetInternalKey(&input, &key)) {
// we don't use compact pointers anymore,
// but we should not fail if they are still
// in manifest
Expand Down Expand Up @@ -739,7 +736,7 @@ Status VersionEdit::DecodeFrom(const Slice& src) {

Status result;
if (msg != nullptr) {
result = Status::Corruption("VersionEdit", msg);
result = Status::Corruption("VersionEdit", msg + std::to_string(tag));
}
return result;
}
Expand Down

0 comments on commit 069892b

Please sign in to comment.