rdbms: move assertOpen() call near the top of Database::query
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 5 Apr 2018 20:49:55 +0000 (13:49 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 5 Apr 2018 20:50:50 +0000 (13:50 -0700)
commit62c45d54a4b889fbbd2c20bc82b2987573e493ec
tree053bac4069b5b02e770555de977bec200f4b5e60
parentea62a9780c72fd24097c7e1bcff754aea33054e9
rdbms: move assertOpen() call near the top of Database::query

This should be done before bothering with begin() calls or setting
the value of fields like "trxDoneWrites" or "lastWriteTime".

Change-Id: Ieace2870f5496fcf230c5c8381baca4b8038db1d
includes/libs/rdbms/database/Database.php