Add an assertion at deletion time to ensure all the transactions were committed.

This commit is contained in:
Vassil Vassilev 2013-06-13 13:49:35 +02:00 committed by sftnight
parent 0decfa6d8d
commit 0818c453ad

View File

@ -130,6 +130,7 @@ namespace cling {
const Transaction* T = getFirstTransaction();
const Transaction* nextT = 0;
while (T) {
assert(T->getState() == Transaction::kCommitted && "Not committed?");
nextT = T->getNext();
delete T;
T = nextT;