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

Function check_single_maintenance

src/jrd/jrd.cpp:7607–7625  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7605
7606
7607static void check_single_maintenance(thread_db* tdbb)
7608{
7609 Database* const dbb = tdbb->getDatabase();
7610
7611 const ULONG ioBlockSize = dbb->getIOBlockSize();
7612 const ULONG headerSize = MAX(RAW_HEADER_SIZE, ioBlockSize);
7613
7614 HalfStaticArray<UCHAR, RAW_HEADER_SIZE + PAGE_ALIGNMENT> temp;
7615 UCHAR* header_page_buffer = temp.getAlignedBuffer(headerSize, ioBlockSize);
7616
7617 Ods::header_page* const header_page = reinterpret_cast<Ods::header_page*>(header_page_buffer);
7618
7619 PIO_header(tdbb, header_page_buffer, headerSize);
7620
7621 if ((header_page->hdr_flags & Ods::hdr_shutdown_mask) == Ods::hdr_shutdown_single)
7622 {
7623 ERR_post(Arg::Gds(isc_shutdown) << Arg::Str(tdbb->getAttachment()->att_filename));
7624 }
7625}
7626
7627
7628static void init_database_lock(thread_db* tdbb)

Callers 2

internalAttachMethod · 0.85
init_database_lockFunction · 0.85

Calls 8

GdsClass · 0.85
StrClass · 0.85
getDatabaseMethod · 0.80
getIOBlockSizeMethod · 0.80
getAlignedBufferMethod · 0.80
ERR_postFunction · 0.70
PIO_headerFunction · 0.50
getAttachmentMethod · 0.45

Tested by

no test coverage detected