From 058026a88564c8c8d6eb732de0e13e21cc82952d Mon Sep 17 00:00:00 2001 From: Maysam Yabandeh Date: Fri, 10 Aug 2018 10:25:28 -0700 Subject: [PATCH] Fix unity compile error (#4257) Summary: Fix the compile error in "make unity_test" caused by #3983. Pull Request resolved: https://github.com/facebook/rocksdb/pull/4257 Differential Revision: D9271740 Pulled By: maysamyabandeh fbshipit-source-id: 94e56d1675bf8bdc0e94439467eb4f40dd107517 --- table/block.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/table/block.cc b/table/block.cc index 0e6c2b112..020a09baf 100644 --- a/table/block.cc +++ b/table/block.cc @@ -462,7 +462,9 @@ void IndexBlockIter::DecodeCurrentValue(uint32_t shared) { if (shared == 0) { uint64_t o, s; const char* newp = GetVarint64Ptr(value_.data(), limit, &o); + assert(newp); newp = GetVarint64Ptr(newp, limit, &s); + assert(newp); decoded_value_ = BlockHandle(o, s); value_ = Slice(value_.data(), newp - value_.data()); } else {