diff --git a/db/version_edit.cc b/db/version_edit.cc index 284b65f71..d9246367c 100644 --- a/db/version_edit.cc +++ b/db/version_edit.cc @@ -556,7 +556,8 @@ Status VersionEdit::DecodeFrom(const Slice& src) { break; } - case kBlobFileAddition: { + case kBlobFileAddition: + case kBlobFileAddition_DEPRECATED: { BlobFileAddition blob_file_addition; const Status s = blob_file_addition.DecodeFrom(&input); if (!s.ok()) { @@ -567,7 +568,8 @@ Status VersionEdit::DecodeFrom(const Slice& src) { break; } - case kBlobFileGarbage: { + case kBlobFileGarbage: + case kBlobFileGarbage_DEPRECATED: { BlobFileGarbage blob_file_garbage; const Status s = blob_file_garbage.DecodeFrom(&input); if (!s.ok()) { diff --git a/db/version_edit.h b/db/version_edit.h index a80543a0d..02fee7fcf 100644 --- a/db/version_edit.h +++ b/db/version_edit.h @@ -52,13 +52,16 @@ enum Tag : uint32_t { kInAtomicGroup = 300, + kBlobFileAddition = 400, + kBlobFileGarbage, + // Mask for an unidentified tag from the future which can be safely ignored. kTagSafeIgnoreMask = 1 << 13, // Forward compatible (aka ignorable) records kDbId, - kBlobFileAddition, - kBlobFileGarbage, + kBlobFileAddition_DEPRECATED, + kBlobFileGarbage_DEPRECATED, kWalAddition, kWalDeletion, kFullHistoryTsLow,