19 Commits

Author SHA1 Message Date
est31
8128e1d50f Fix -Wterminate warnings in rollback.cpp as well
Fix #4137 for rollback.cpp as well.
2016-07-08 07:27:49 +02:00
ShadowNinja
30362e5e6c Fix rollback.txt migration
Broken by b1965ac20922e3722392114bd63a22b403dcbe98.
This also prepares the begin and commit statements only once.
2016-05-23 11:48:30 -04:00
cheapie
8da858f42c Improve rollback database indexing
Index more columns in the action table of the rollback DB to improve the performance of /rollback_check
2015-10-24 08:45:38 +02:00
est31
804ce0e79a Flush rollback log more often
Flushes the buffer of rollback actions that wait to get saved in two more situations:

1. Flushes in the destructor of the rollback. This makes the server not
forget the last < 500 rollback entries when it shuts down.

2. Flushes the rollback when /rollback_check is invoked. This is neccessary
as otherwise it leads to confusion if users want to test the rollback functionality
by placing a node and then executing the check on it, or if the actions were
very recent out of other reasons.
2015-10-24 08:45:13 +02:00
David Jones
9d1284b324 Change i++ to ++i 2015-08-25 18:33:52 -04:00
ShadowNinja
416c5c8339 Clean up rollback 2014-11-19 16:21:59 -05:00
sapier
e6881fcac4 Fix statement not set NULL on deletion
Make local only variables static
2014-06-25 20:01:29 +02:00
sapier
f0edcf6f3a Fix sqlite3 map shutdown fails due to missing to finalize list statement
Add error output on fail to shutdown sqlite3 map db
Implement shutdown of sqlite3 rollback db
2014-06-22 13:38:51 +02:00
ShadowNinja
55ebd079f4 Don't use variable length arrays 2013-11-28 11:22:41 -05:00
ShadowNinja
1b1e315a6a Rollback fixes and get_node_actions 2013-11-27 18:13:06 -05:00
Mario Barrera
32094d5ff4 SQLite rollback 2013-11-27 18:13:06 -05:00
Kahrl
ee90d438b8 Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenu 2013-08-14 21:03:33 +02:00
Sfan5
3fab3825aa Update Copyright Years 2013-02-24 20:15:24 +01:00
PilzAdam
269f01224b Change Minetest-c55 to Minetest 2013-02-24 18:49:03 +01:00
Perttu Ahola
165a21a4a6 Tweak rollback and liquids 2012-07-27 15:46:51 +03:00
Perttu Ahola
a601ec84ab Tweak rollback stuff 2012-07-27 14:52:29 +03:00
Perttu Ahola
1121f3845f Increase automatic suspect guess timeframe 2012-07-27 13:54:14 +03:00
Perttu Ahola
dcfd402697 Make the rollback system VERY FUCKING GOD DAMN POWERFUL 2012-07-27 13:24:28 +03:00
Perttu Ahola
3303470fbc Experimental-ish rollback functionality 2012-07-27 02:27:18 +03:00