____________________________________________________________ Read init record from backup file
| 694 | // Read init record from backup file |
| 695 | // |
| 696 | void 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 | |
| 723 | void mvol_init_read(BurpGlobals* tdgbl, const char* file_name, USHORT* format, int* cnt, UCHAR** ptr) |
| 724 | { |
nothing calls this directly
no test coverage detected