Introducing the concept of NULL block handle

This commit is contained in:
Kai Liu
2013-12-04 15:43:09 -08:00
parent 3a0e98d558
commit 5dec7acd91
2 changed files with 23 additions and 4 deletions

View File

@@ -34,6 +34,7 @@ Status BlockHandle::DecodeFrom(Slice* input) {
return Status::Corruption("bad block handle");
}
}
const BlockHandle BlockHandle::kNullBlockHandle(0, 0);
void Footer::EncodeTo(std::string* dst) const {
#ifndef NDEBUG