database: rename clearSnapshot() => flushSnapshot()
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 8 Sep 2016 11:28:52 +0000 (04:28 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 8 Sep 2016 12:24:48 +0000 (12:24 +0000)
commit19b7d29f3caf26464a7cf005c84c017ffdf800e6
treea5bc53213e77f94e489adfa7817a482b36b85e2c
parentc48efcfe41ac9eb23faf83b0d5a2aed350d71d05
database: rename clearSnapshot() => flushSnapshot()

* This is more consistent with the name flushReplicaSnapshots().
* Also add it to IDatabase, which defines the modern OLTP methods
  of DatabaseBase. This methods is useful for callers that get
  locks or wait for a replica DB to catch up before querying it.

Change-Id: Ia31e480bb9ccf461bf05ede4278920918eec4f16
includes/db/DBConnRef.php
includes/db/Database.php
includes/db/IDatabase.php
includes/db/loadbalancer/LoadBalancer.php
tests/phpunit/includes/db/DatabaseTest.php