rdbms: change "profiler" argument in Database::factory so it works again
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 13 Mar 2019 18:11:18 +0000 (11:11 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 14 Mar 2019 22:19:58 +0000 (22:19 +0000)
commitb438db9e2c45fcfa923d8f0ae19cfab5cf583457
treeead1dfcbeb39fa0995bdacd7ecdafd4e0c39ea18
parent58ee03b13d32b96d86aaf905fdfa8ac14241a5cc
rdbms: change "profiler" argument in Database::factory so it works again

The Profiler::profileIn and Profiler::profileOut methods are just stubs.
Use a callback to the Profiler::scopedProfileIn method instead.

Change-Id: I16068bce583bb880250fe91235f2283453be5e4c
includes/db/MWLBFactory.php
includes/libs/rdbms/database/Database.php
tests/phpunit/includes/db/DatabaseTestHelper.php