MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / EXT_tra_detach

Function EXT_tra_detach

src/jrd/ext.cpp:597–618  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

595}
596
597void 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}

Callers 1

TRA_release_transactionFunction · 0.85

Calls 1

fcloseFunction · 0.85

Tested by

no test coverage detected