I playtested my game with someone on another computer, and each time I got a white screen with this message:
A deadlock happens when two scripts try to modify the same table at the same time and the mysql server is configured to only allow one at a time.
A refresh did the trick, but I'm wandering: will this only happen in the studio or do I have to loop repeat all my DB queries just in case?
Code: Select all
Sorry, an unexpected error has occured ...
mysql_deadlock_restart_transaction
#0 /home/pikiou/gearnpiston/gearnpiston.game.php(783): APP_DbObject::DbQuery('REPLACE propert...')
#1 /home/pikiou/gearnpiston/gearnpiston.game.php(185): Gearnpiston->saveProperties()
#2 /var/tournoi/release/tournoi-130118-1659-gs/www/game/module/table/table.game.php(74): Gearnpiston->getAllDatas()
#3 /var/tournoi/release/tournoi-130118-1659-gs/www/view/common/game.view.php(176): Table->getAllTableDatas()
#4 /var/tournoi/release/tournoi-130118-1659-gs/www/view/common/game.view.php(135): game_view->post_generate()
#3 /var/tournoi/release/tournoi-130118-1659-gs/www/view/common/game.view.php(176): Table->getAllTableDatas()
#4 /var/tournoi/release/tournoi-130118-1659-gs/www/view/common/game.view.php(135): game_view->post_generate()
#5 /var/tournoi/release/tournoi-130118-1659-gs/www/view/common/ebg.view.php(23): game_view->generate_content(Array)
#6 /var/tournoi/release/tournoi-130118-1659-gs/www/include/webActionCore.inc.php(178): ebg_view->generate(Array)
#7 /var/tournoi/release/tournoi-130118-1659-gs/www/index.php(126): launchWebAction('gearnpiston', 'gearnpiston', '__default', false, false, NULL, true)
#8 {main}A refresh did the trick, but I'm wandering: will this only happen in the studio or do I have to loop repeat all my DB queries just in case?