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

Function pagtype

src/jrd/ods.cpp:138–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138Firebird::string pagtype(UCHAR type)
139{
140 // Print pretty name for database page type
141
142 const char* nameArray[pag_max + 1] = {
143 "purposely undefined",
144 "database header",
145 "page inventory",
146 "transaction inventory",
147 "pointer",
148 "data",
149 "index root",
150 "index B-tree",
151 "blob",
152 "generators",
153 "SCN inventory"
154 };
155
156 Firebird::string rc;
157 if (type < FB_NELEM(nameArray))
158 rc = nameArray[type];
159 else
160 rc.printf("unknown (%d)", type);
161
162 return rc;
163}
164
165TraNumber getNT(const header_page* page)
166{

Callers 2

page_validation_errorFunction · 0.85
fetch_pageMethod · 0.85

Calls 1

printfMethod · 0.45

Tested by

no test coverage detected