Merge pull request #2084 from lee-eve/master

Unused variable: offsets
This commit is contained in:
Jin Hai 2020-04-25 13:18:19 +08:00 committed by GitHub
commit 6d87dc3c72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1164,7 +1164,6 @@ DBImpl::GetVectorByIdHelper(const std::string& collection_id, IDNumber vector_id
// Check if the id is present in bloom filter.
if (id_bloom_filter_ptr->Check(vector_id)) {
// Load uids and check if the id is indeed present. If yes, find its offset.
std::vector<int64_t> offsets;
std::vector<segment::doc_id_t> uids;
auto status = segment_reader.LoadUids(uids);
if (!status.ok()) {