| 76 | typedef Firebird::BePlusTree<UndoItem, SINT64, UndoItem> UndoItemTree; |
| 77 | |
| 78 | class VerbAction |
| 79 | { |
| 80 | public: |
| 81 | VerbAction() |
| 82 | : vct_next(NULL), vct_relation(NULL), vct_records(NULL), vct_undo(NULL) |
| 83 | {} |
| 84 | |
| 85 | ~VerbAction() |
| 86 | { |
| 87 | delete vct_records; |
| 88 | delete vct_undo; |
| 89 | } |
| 90 | |
| 91 | VerbAction* vct_next; // Next action within verb |
| 92 | jrd_rel* vct_relation; // Relation involved |
| 93 | RecordBitmap* vct_records; // Record involved |
| 94 | UndoItemTree* vct_undo; // Data for undo records |
| 95 | |
| 96 | void mergeTo(thread_db* tdbb, jrd_tra* transaction, VerbAction* nextAction); |
| 97 | void undo(thread_db* tdbb, jrd_tra* transaction, bool preserveLocks, |
| 98 | VerbAction* preserveAction); |
| 99 | void garbageCollectIdxLite(thread_db* tdbb, jrd_tra* transaction, SINT64 recordNumber, |
| 100 | VerbAction* nextAction, Record* goingRecord); |
| 101 | |
| 102 | private: |
| 103 | void release(jrd_tra* transaction); |
| 104 | }; |
| 105 | |
| 106 | // Savepoint class |
| 107 | |