| 136 | } |
| 137 | |
| 138 | Firebird::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 | |
| 165 | TraNumber getNT(const header_page* page) |
| 166 | { |
no test coverage detected