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

Function mvol_fini_write

src/burp/mvol.cpp:623–649  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

621}
622
623FB_UINT64 mvol_fini_write(BurpGlobals* tdgbl, int* io_cnt, UCHAR** io_ptr)
624{
625 mvol_write(rec_end, io_cnt, io_ptr);
626 flush_platf(tdgbl->file_desc);
627
628 if (!tdgbl->stdIoMode)
629 {
630 close_platf(tdgbl->file_desc);
631 }
632 for (burp_fil* file = tdgbl->gbl_sw_backup_files; file; file = file->fil_next)
633 {
634 if (file->fil_fd == tdgbl->file_desc)
635 {
636 file->fil_fd = INVALID_HANDLE_VALUE;
637 }
638 }
639
640 tdgbl->file_desc = INVALID_HANDLE_VALUE;
641 BURP_free(tdgbl->mvol_io_memory);
642 tdgbl->mvol_io_memory = NULL;
643 tdgbl->mvol_io_header = NULL;
644 tdgbl->mvol_io_buffer = NULL;
645 tdgbl->blk_io_cnt = 0;
646 tdgbl->blk_io_ptr = NULL;
647
648 return tdgbl->mvol_cumul_count;
649}
650
651
652//____________________________________________________________

Callers 1

MVOL_fini_writeFunction · 0.85

Calls 4

mvol_writeFunction · 0.85
flush_platfFunction · 0.85
BURP_freeFunction · 0.85
close_platfFunction · 0.70

Tested by

no test coverage detected