diff --git a/src/gausskernel/optimizer/plan/createplan.cpp b/src/gausskernel/optimizer/plan/createplan.cpp index 932a85b25..23e3c46ba 100755 --- a/src/gausskernel/optimizer/plan/createplan.cpp +++ b/src/gausskernel/optimizer/plan/createplan.cpp @@ -8719,20 +8719,16 @@ uint32 getDistSessionKey(List* fdw_private) uint32 distSessionKey = 0; foreach (lc, fdw_private) { -#ifdef ENABLE_MOT /* - * MOT FDW may put a node of any type into the list, so if we are looking for + * FDW may put a node of any type into the list, so if we are looking for * some specific type, we need to first make sure that it's the correct type. */ Node* node = (Node*)lfirst(lc); if (IsA(node, DefElem)) { -#endif DefElem* defElem = (DefElem*)lfirst(lc); if (strcmp("session_key", defElem->defname) == 0) distSessionKey = intVal(defElem->arg); -#ifdef ENABLE_MOT } -#endif } return distSessionKey;