We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1e362b commit f9fa9fbCopy full SHA for f9fa9fb
apps/dav/lib/Connector/Sabre/Server.php
@@ -150,12 +150,13 @@ private function getMonitoredCallback(
150
string $pluginName,
151
string $eventName,
152
): callable {
153
+ $connection = \OCP\Server::get(Connection::class);
154
return function (PropFind $propFind, INode $node) use (
155
$callBack,
156
$pluginName,
157
$eventName,
158
+ $connection,
159
): bool {
- $connection = \OCP\Server::get(Connection::class);
160
$queriesBefore = $connection->getStats()['executed'];
161
$result = $callBack($propFind, $node);
162
$queriesAfter = $connection->getStats()['executed'];
0 commit comments