Description
code of ExTupleFlowTcb::work() in core/sql/executor/ex_tuple_flow.cpp
308 if ((pstate.tgtRowsSent_ == FALSE) && 309 (src_entry->getDiagsArea())) 310 { 311 // a warning is returned with EOD and 312 // nothing else was returned from source. 313 // Move warning to parent's up queue. 314 if (qParent_.up->isFull()) 315 return WORK_OK; 316 317 ex_queue_entry * up_entry = 318 qParent_.up->getTailEntry(); 319 up_entry->setDiagsArea(src_entry->getDiagsArea()); 320 }
has not increased the ref count, compared to the following correct one:
294 if (from->getDiagsArea())
295 from->getDiagsArea()->incrRefCount();
296
297 setDiagsArea(from->getDiagsArea());
of atp_struct::copyAtp() in ore/sql/exp/ExpAtp.h
Attachments
Issue Links
- links to