Optimize error handling of rocksdb (#841)
This commit is contained in:
committed by
lichaoyong
parent
5d29fc6bd9
commit
e409c2edc3
@ -171,6 +171,10 @@ OLAPStatus OlapMeta::iterate(const int column_family_index, const std::string& p
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!it->status().ok()) {
|
||||
LOG(WARNING) << "rocksdb iterator failed. reason:" << status.ToString();
|
||||
return OLAP_ERR_META_ITERATOR;
|
||||
}
|
||||
return OLAP_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user