| 595 | } |
| 596 | |
| 597 | void EXT_tra_detach(ExternalFile* file, jrd_tra*) |
| 598 | { |
| 599 | /************************************** |
| 600 | * |
| 601 | * E X T _ t r a _ d e t a c h |
| 602 | * |
| 603 | ************************************** |
| 604 | * |
| 605 | * Functional description |
| 606 | * Transaction used external table is finished. |
| 607 | * Decrement transactions use count and close |
| 608 | * external file if count is zero. |
| 609 | * |
| 610 | **************************************/ |
| 611 | |
| 612 | file->ext_tra_cnt--; |
| 613 | if (!file->ext_tra_cnt && file->ext_ifi) |
| 614 | { |
| 615 | fclose(file->ext_ifi); |
| 616 | file->ext_ifi = NULL; |
| 617 | } |
| 618 | } |
no test coverage detected