Add log for error status (#2148)

Signed-off-by: talentAN <adam_an02@163.com>
This commit is contained in:
AzAz 2020-04-27 16:13:11 +08:00 committed by GitHub
parent ac2c25212f
commit b3028baed8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2285,6 +2285,9 @@ DBImpl::UpdateCollectionIndexRecursively(const std::string& collection_id, const
std::vector<meta::CollectionSchema> partition_array;
status = meta_ptr_->ShowPartitions(collection_id, partition_array);
if (!status.ok()) {
return status;
}
for (auto& schema : partition_array) {
status = UpdateCollectionIndexRecursively(schema.collection_id_, index);
if (!status.ok()) {