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

Function MVOL_init_read

src/burp/mvol.cpp:696–721  ·  view source on GitHub ↗

____________________________________________________________ Read init record from backup file

Source from the content-addressed store, hash-verified

694// Read init record from backup file
695//
696void MVOL_init_read(const char* file_name, USHORT* format)
697{
698 BurpGlobals* tdgbl = BurpGlobals::getSpecific();
699
700 mvol_init_read(tdgbl, file_name, format, &tdgbl->blk_io_cnt, &tdgbl->blk_io_ptr);
701
702 tdgbl->gbl_io_cnt = 0;
703 tdgbl->gbl_io_ptr = NULL;
704
705 if (tdgbl->gbl_sw_zip)
706 {
707#ifdef HAVE_ZLIB_H
708 z_stream& strm = tdgbl->gbl_stream;
709
710 strm.zalloc = Firebird::ZLib::allocFunc;
711 strm.zfree = Firebird::ZLib::freeFunc;
712 strm.opaque = Z_NULL;
713 strm.avail_in = 0;
714 strm.next_in = Z_NULL;
715 checkCompression();
716 int ret = zlib().inflateInit(&strm);
717 if (ret != Z_OK)
718#endif
719 BURP_error(383, true, SafeArg() << 127);
720 }
721}
722
723void mvol_init_read(BurpGlobals* tdgbl, const char* file_name, USHORT* format, int* cnt, UCHAR** ptr)
724{

Callers

nothing calls this directly

Calls 4

mvol_init_readFunction · 0.85
checkCompressionFunction · 0.85
BURP_errorFunction · 0.85
SafeArgClass · 0.50

Tested by

no test coverage detected