| 288 | } |
| 289 | |
| 290 | void jrd_rel::RelPagesSnapshot::clear() |
| 291 | { |
| 292 | #ifdef DEV_BUILD |
| 293 | thread_db* tdbb = NULL; |
| 294 | SET_TDBB(tdbb); |
| 295 | fb_assert(tdbb == spt_tdbb); |
| 296 | #endif |
| 297 | |
| 298 | for (FB_SIZE_T i = 0; i < getCount(); i++) |
| 299 | { |
| 300 | RelationPages* relPages = (*this)[i]; |
| 301 | (*this)[i] = NULL; |
| 302 | |
| 303 | spt_relation->delPages(spt_tdbb, MAX_TRA_NUMBER, relPages); |
| 304 | } |
| 305 | |
| 306 | inherited::clear(); |
| 307 | } |
| 308 | |
| 309 | bool jrd_rel::hasTriggers() const |
| 310 | { |