diff --git a/db/version_set.cc b/db/version_set.cc index dd76e8c57..bc8860882 100644 --- a/db/version_set.cc +++ b/db/version_set.cc @@ -333,7 +333,6 @@ void DoGenerateLevelFilesBrief(LevelFilesBrief* file_level, const std::vector& files, Arena* arena) { assert(file_level); - assert(files.size() >= 0); assert(arena); size_t num = files.size(); diff --git a/table/plain_table_key_coding.cc b/table/plain_table_key_coding.cc index 08d16f191..4b2da6d55 100644 --- a/table/plain_table_key_coding.cc +++ b/table/plain_table_key_coding.cc @@ -276,7 +276,6 @@ Status PlainTableKeyDecoder::NextPrefixEncodingKey( if (seekable != nullptr) { *seekable = false; } - assert(prefix_len_ >= 0); cur_key_.Reserve(prefix_len_ + size); Slice tmp_slice;