patch code to open source

This commit is contained in:
obdev
2021-07-16 20:57:14 +08:00
committed by wangzelin.wzl
parent ce7960726f
commit 3a6db0a542
25 changed files with 329 additions and 150 deletions

View File

@ -316,17 +316,20 @@ int ObPartitionMetaStorageReader::read_table_keys()
OB_LOG(WARN, "fail to deserialize table key size", K(ret), K(table_idx), K(table_count), K(read_size));
} else if (OB_FAIL(table_key.deserialize(read_buf, read_size, pos))) {
OB_LOG(WARN, "fail to deserialize table key", K(ret), K(table_idx), K(table_count), K(read_size));
} else if (serialize_size != table_key.get_serialize_size()) {
ret = OB_ERR_UNEXPECTED;
OB_LOG(WARN, "table keys serialize size is not match", K(ret), K(serialize_size), K(table_key));
} else if (OB_FAIL(table_keys_array_.push_back(table_key))) {
OB_LOG(WARN, "fail to push backup table key", K(ret), K(table_key));
} else {
OB_LOG(DEBUG, "succ to add table key meta", K(read_size), K(pos), K(table_key));
}
}
}
if (OB_SUCC(ret)) {
if (pos != read_size) {
ret = OB_ERR_UNEXPECTED;
OB_LOG(WARN, "table keys serialize size is not match", K(ret), K(pos), K(read_size));
}
}
}
return ret;
}