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

Function isSupported

src/jrd/ods.cpp:39–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37namespace Ods {
38
39bool isSupported(const header_page* hdr)
40{
41 USHORT majorVersion = hdr->hdr_ods_version;
42 USHORT minorVersion = hdr->hdr_ods_minor;
43 const bool isFirebird = (majorVersion & ODS_FIREBIRD_FLAG);
44 majorVersion &= ~ODS_FIREBIRD_FLAG;
45
46 if (!isFirebird)
47 return false;
48
49 // Support current ODS of the engine
50 if (majorVersion == ODS_VERSION &&
51 minorVersion >= ODS_RELEASED &&
52 minorVersion <= ODS_CURRENT)
53 {
54 return true;
55 }
56
57 // Do not support anything else
58 return false;
59}
60
61ULONG bytesBitPIP(ULONG page_size)
62{

Callers 3

backup_databaseMethod · 0.85
PAG_header_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected