We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea992b4 commit a7bff69Copy full SHA for a7bff69
table/format.cc
@@ -30,15 +30,14 @@ Status BlockHandle::DecodeFrom(Slice* input) {
30
}
31
32
void Footer::EncodeTo(std::string* dst) const {
33
-#ifndef NDEBUG
34
const size_t original_size = dst->size();
35
-#endif
36
metaindex_handle_.EncodeTo(dst);
37
index_handle_.EncodeTo(dst);
38
dst->resize(2 * BlockHandle::kMaxEncodedLength); // Padding
39
PutFixed32(dst, static_cast<uint32_t>(kTableMagicNumber & 0xffffffffu));
40
PutFixed32(dst, static_cast<uint32_t>(kTableMagicNumber >> 32));
41
assert(dst->size() == original_size + kEncodedLength);
+ (void)original_size; // Disable unused variable warning.
42
43
44
Status Footer::DecodeFrom(Slice* input) {
0 commit comments