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

Method clear

src/jrd/Relation.cpp:290–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288}
289
290void 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
309bool jrd_rel::hasTriggers() const
310{

Callers 1

freeMethod · 0.45

Calls 2

SET_TDBBFunction · 0.85
clearClass · 0.50

Tested by

no test coverage detected