Optimize error handling of rocksdb (#841)

This commit is contained in:
kangpinghuang
2019-04-01 14:42:59 +08:00
committed by lichaoyong
parent 5d29fc6bd9
commit e409c2edc3

View File

@ -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;
}