Revision and WikiPage cleanup with IDBAccessObject interface.
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 8 Aug 2012 06:22:49 +0000 (23:22 -0700)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 8 Aug 2012 16:34:08 +0000 (16:34 +0000)
commiteb183bac87cb58ca910140a31a5f8b8c7916302f
tree9cde9774ebdbc4e7f7d7f98e5d3bcf7ac6b21ba9
parentef498e793e53b30560ec717601b51b7cdec2bdae
Revision and WikiPage cleanup with IDBAccessObject interface.

* Replaced WikiPage::DATA_FROM_* constants with IDBAccessObject ones.
* Renamed IDBAccessObject constants a bit for visual consistency.
* Removed AVOID_MASTER parameter and replaced calling instances with READ_NORMAL.
  Instead of getting page_latest from the master and the revision from a
  slave, just get it all from the master in one RTT. Most callers used
  AVOID_MASTER (and now READ_NORMAL), so this case is barely hit anymore.

Change-Id: Ifbefdcd4490094b38e49bbb46c95fdb71b5c9e1a
includes/Revision.php
includes/WikiPage.php
includes/dao/IDBAccessObject.php
includes/diff/DifferenceEngine.php
includes/filerepo/file/LocalFile.php
includes/job/RefreshLinksJob.php
includes/parser/Parser.php
includes/search/SearchEngine.php
includes/specials/SpecialBooksources.php