Fix segment group add zone check bug and remove unused meta log (#1513)
This commit is contained in:
@ -97,7 +97,6 @@ OLAPStatus OlapMeta::get(const int column_family_index, const std::string& key,
|
||||
}
|
||||
DorisMetrics::meta_read_request_duration_us.increment(duration_ns / 1000);
|
||||
if (s.IsNotFound()) {
|
||||
LOG(WARNING) << "rocks db key not found:" << key;
|
||||
return OLAP_ERR_META_KEY_NOT_FOUND;
|
||||
} else if (!s.ok()) {
|
||||
LOG(WARNING) << "rocks db get key:" << key << " failed, reason:" << s.ToString();
|
||||
|
||||
@ -276,7 +276,7 @@ OLAPStatus SegmentGroup::add_zone_maps_for_linked_schema_change(
|
||||
|
||||
OLAPStatus SegmentGroup::add_zone_maps(
|
||||
const std::vector<std::pair<WrapperField*, WrapperField*>>& zone_map_fields) {
|
||||
DCHECK(zone_map_fields.size() == _schema->num_key_columns());
|
||||
DCHECK(_empty || zone_map_fields.size() == _schema->num_key_columns());
|
||||
for (size_t i = 0; i < zone_map_fields.size(); ++i) {
|
||||
const TabletColumn& column = _schema->column(i);
|
||||
WrapperField* first = WrapperField::create(column);
|
||||
@ -295,7 +295,7 @@ OLAPStatus SegmentGroup::add_zone_maps(
|
||||
OLAPStatus SegmentGroup::add_zone_maps(
|
||||
std::vector<std::pair<std::string, std::string> > &zone_map_strings,
|
||||
std::vector<bool> &null_vec) {
|
||||
DCHECK(zone_map_strings.size() == _schema->num_key_columns());
|
||||
DCHECK(_empty || zone_map_strings.size() == _schema->num_key_columns());
|
||||
for (size_t i = 0; i < zone_map_strings.size(); ++i) {
|
||||
const TabletColumn& column = _schema->column(i);
|
||||
WrapperField* first = WrapperField::create(column);
|
||||
|
||||
Reference in New Issue
Block a user