diff --git a/db/write_batch.cc b/db/write_batch.cc index 3820dccd05..76b59efb68 100644 --- a/db/write_batch.cc +++ b/db/write_batch.cc @@ -502,7 +502,9 @@ Status ReadRecordFromWriteBatch(Slice* input, char* tag, break; } default: - return Status::Corruption("unknown WriteBatch tag"); + return Status::Corruption( + "unknown WriteBatch tag", + std::to_string(static_cast(*tag))); } return Status::OK(); } @@ -750,7 +752,9 @@ Status WriteBatchInternal::Iterate(const WriteBatch* wb, } break; default: - return Status::Corruption("unknown WriteBatch tag"); + return Status::Corruption( + "unknown WriteBatch tag", + std::to_string(static_cast(tag))); } } if (!s.ok()) {