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

Method listStayingUndo

src/jrd/tra.cpp:3957–3977  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3955}
3956
3957void jrd_tra::listStayingUndo(jrd_rel* relation, SINT64 number, RecordStack &staying)
3958/**************************************
3959 *
3960 * l i s t S t a y i n g U n d o
3961 *
3962 **************************************
3963 *
3964 * Functional description
3965 * For given record find undo data in stack of savepoint (if any) and push it into list.
3966 * Except one from given verb action.
3967 *
3968 **************************************/
3969{
3970 for (Savepoint::Iterator iter(tra_save_point); *iter; ++iter)
3971 {
3972 VerbAction* const action = (*iter)->getAction(relation);
3973
3974 if (action && action->vct_undo && action->vct_undo->locate(number))
3975 staying.push(action->vct_undo->current().setupRecord(this));
3976 }
3977}
3978
3979void jrd_tra::releaseAutonomousPool(MemoryPool* toRelease)
3980{

Callers 1

VIO_garbage_collect_idxFunction · 0.80

Calls 5

setupRecordMethod · 0.80
getActionMethod · 0.45
locateMethod · 0.45
pushMethod · 0.45
currentMethod · 0.45

Tested by

no test coverage detected