From b3028baed8340c1342f87f5fb80e6ff3c2a0821d Mon Sep 17 00:00:00 2001 From: AzAz Date: Mon, 27 Apr 2020 16:13:11 +0800 Subject: [PATCH] Add log for error status (#2148) Signed-off-by: talentAN --- core/src/db/DBImpl.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/src/db/DBImpl.cpp b/core/src/db/DBImpl.cpp index 2497691335..50944055e8 100644 --- a/core/src/db/DBImpl.cpp +++ b/core/src/db/DBImpl.cpp @@ -2285,6 +2285,9 @@ DBImpl::UpdateCollectionIndexRecursively(const std::string& collection_id, const std::vector 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()) {