]> de.git.xonotic.org Git - xonotic/xonstat.git/commit
Wait for precondition checks before beginning the DB transaction.
authorAnt Zucaro <azucaro@gmail.com>
Thu, 23 Aug 2012 11:40:51 +0000 (07:40 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Thu, 23 Aug 2012 11:40:51 +0000 (07:40 -0400)
commite7ce68e8bd31559caa328a6ffa600ee8f3c3284b
treeeb055cc6e512b5c4f5cd838ed580681d99162066
parent36ee45a0e6f186a6978143f318a3bc7a75dd8fb0
Wait for precondition checks before beginning the DB transaction.

SQLA's DBSession implicitly starts a PG transaction. When this
happens before the precondition checks (blank game, verified req, etc)
then an unneccesary transaction is started. Delay grabbing a new
DBSession until AFTER these checks are done prevents these useless
transactions from occurring. This means we should see little to
no ROLLBACK transactions in Munin once this is in place.
xonstat/views/submission.py