Fix rollback.txt migration

Broken by b1965ac209.
This also prepares the begin and commit statements only once.
This commit is contained in:
ShadowNinja
2016-02-12 18:39:03 -05:00
parent 22f78ea38e
commit ef100f12a1
2 changed files with 28 additions and 15 deletions

View File

@@ -61,7 +61,7 @@ class RollbackManager: public IRollbackManager
const char * getActorName(const int id);
const char * getNodeName(const int id);
bool createTables();
void initDatabase();
bool initDatabase();
bool registerRow(const ActionRow & row);
const std::list<ActionRow> actionRowsFromSelect(sqlite3_stmt * stmt);
ActionRow actionRowFromRollbackAction(const RollbackAction & action);