Fix type error in das simple op

This commit is contained in:
pe-99y
2024-04-18 13:57:33 +00:00
committed by ob-robot
parent dd6ff5c5ff
commit a64ac592b6
2 changed files with 3 additions and 3 deletions

View File

@ -220,7 +220,7 @@ int ObDASRangesCostOp::fill_task_result(ObIDASTaskResult &task_result, bool &has
int ret = OB_SUCCESS;
UNUSED(memory_limit);
#if !defined(NDEBUG)
CK(typeid(task_result) == typeid(ObDASSplitRangesResult));
CK(typeid(task_result) == typeid(ObDASRangesCostResult));
#endif
if (OB_SUCC(ret)) {
ObDASRangesCostResult &result = static_cast<ObDASRangesCostResult&>(task_result);
@ -234,7 +234,7 @@ int ObDASRangesCostOp::decode_task_result(ObIDASTaskResult *task_result)
{
int ret = OB_SUCCESS;
#if !defined(NDEBUG)
CK(typeid(*task_result) == typeid(ObDASSplitRangesResult));
CK(typeid(*task_result) == typeid(ObDASRangesCostResult));
CK(task_id_ == task_result->get_task_id());
#endif
if (OB_SUCC(ret)) {

View File

@ -147,4 +147,4 @@ public:
} // namespace sql
} // namespace oceanbase
#endif /* OBDEV_SRC_SQL_DAS_OB_DAS_DELETE_OP_H_ */
#endif /* OBDEV_SRC_SQL_DAS_OB_DAS_SIMPLE_OP_H */