| 259 | } |
| 260 | |
| 261 | bool BtrPageGCLock::isPageGCAllowed(thread_db* tdbb, const PageNumber& page) |
| 262 | { |
| 263 | BtrPageGCLock lock(tdbb); |
| 264 | page.getLockStr(lock.getKeyPtr()); |
| 265 | |
| 266 | ThreadStatusGuard temp_status(tdbb); |
| 267 | |
| 268 | if (!LCK_lock(tdbb, &lock, LCK_write, LCK_NO_WAIT)) |
| 269 | return false; |
| 270 | |
| 271 | LCK_release(tdbb, &lock); |
| 272 | return true; |
| 273 | } |
| 274 | |
| 275 | // IndexErrorContext class |
| 276 |
nothing calls this directly
no test coverage detected