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

Function EXT_fini

src/jrd/ext.cpp:317–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315
316
317void 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
348bool EXT_get(thread_db* tdbb, record_param* rpb, FB_UINT64& position)

Callers 2

EXT_fileFunction · 0.85
releaseRelationsMethod · 0.85

Calls 1

fcloseFunction · 0.85

Tested by

no test coverage detected