summaryrefslogtreecommitdiff
path: root/src/rollback.h
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2016-02-12 18:39:03 -0500
committerShadowNinja <shadowninja@minetest.net>2016-05-23 11:48:30 -0400
commitef100f12a1346f7bfd2a05dc606cb22e97179c02 (patch)
tree44c9c18eabab46c9795a8283963e02a8e19e4f0f /src/rollback.h
parent22f78ea38e415c40ef445786b77788a40f4ddac3 (diff)
downloadminetest-ef100f12a1346f7bfd2a05dc606cb22e97179c02.tar.gz
minetest-ef100f12a1346f7bfd2a05dc606cb22e97179c02.tar.bz2
minetest-ef100f12a1346f7bfd2a05dc606cb22e97179c02.zip
Fix rollback.txt migration
Broken by b1965ac20922e3722392114bd63a22b403dcbe98. This also prepares the begin and commit statements only once.
Diffstat (limited to 'src/rollback.h')
-rw-r--r--src/rollback.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rollback.h b/src/rollback.h
index c57e38ab0..a05ef8b78 100644
--- a/src/rollback.h
+++ b/src/rollback.h
@@ -61,7 +61,7 @@ private:
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);