| 315 | |
| 316 | |
| 317 | void EXT_fini(jrd_rel* relation, bool close_only) |
| 318 | { |
| 319 | /************************************** |
| 320 | * |
| 321 | * E X T _ f i n i |
| 322 | * |
| 323 | ************************************** |
| 324 | * |
| 325 | * Functional description |
| 326 | * Close the file associated with a relation. |
| 327 | * |
| 328 | **************************************/ |
| 329 | if (relation->rel_file) |
| 330 | { |
| 331 | ExternalFile* file = relation->rel_file; |
| 332 | if (file->ext_ifi) |
| 333 | { |
| 334 | fclose(file->ext_ifi); |
| 335 | file->ext_ifi = NULL; |
| 336 | } |
| 337 | |
| 338 | // before zeroing out the rel_file we need to deallocate the memory |
| 339 | if (!close_only) |
| 340 | { |
| 341 | delete file; |
| 342 | relation->rel_file = NULL; |
| 343 | } |
| 344 | } |
| 345 | } |
| 346 | |
| 347 | |
| 348 | bool EXT_get(thread_db* tdbb, record_param* rpb, FB_UINT64& position) |
no test coverage detected