| 505 | |
| 506 | |
| 507 | RecordSource* CMP_post_rse(thread_db* tdbb, CompilerScratch* csb, RseNode* rse) |
| 508 | { |
| 509 | /************************************** |
| 510 | * |
| 511 | * C M P _ p o s t _ r s e |
| 512 | * |
| 513 | ************************************** |
| 514 | * |
| 515 | * Functional description |
| 516 | * Perform actual optimization of an RseNode and clear activity. |
| 517 | * |
| 518 | **************************************/ |
| 519 | SET_TDBB(tdbb); |
| 520 | |
| 521 | fb_assert(csb->csb_currentCursorId); |
| 522 | |
| 523 | const auto rsb = Optimizer::compile(tdbb, csb, rse); |
| 524 | |
| 525 | // Mark all the substreams as inactive |
| 526 | |
| 527 | StreamList streams; |
| 528 | rse->computeRseStreams(streams); |
| 529 | |
| 530 | for (const auto stream : streams) |
| 531 | csb->csb_rpt[stream].deactivate(); |
| 532 | |
| 533 | return rsb; |
| 534 | } |
no test coverage detected