jenkins-bot has submitted this change and it was merged.

Change subject: Add FileOperationReplication log to improve multiwrite backend 
logging
......................................................................


Add FileOperationReplication log to improve multiwrite backend logging

Change-Id: I541eac740f4a07182067294c9597cdd49330e86c
---
M includes/filebackend/FileBackendMultiWrite.php
1 file changed, 7 insertions(+), 1 deletion(-)

Approvals:
  Gilles: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/filebackend/FileBackendMultiWrite.php 
b/includes/filebackend/FileBackendMultiWrite.php
index 5a103c6..6f40bda 100644
--- a/includes/filebackend/FileBackendMultiWrite.php
+++ b/includes/filebackend/FileBackendMultiWrite.php
@@ -202,11 +202,17 @@
                                if ( $this->asyncWrites && 
!$this->hasVolatileSources( $ops ) ) {
                                        // Bind $scopeLock to the callback to 
preserve locks
                                        DeferredUpdates::addCallableUpdate(
-                                               function() use ( $backend, 
$realOps, $opts, $scopeLock ) {
+                                               function() use ( $backend, 
$realOps, $opts, $scopeLock, $relevantPaths ) {
+                                                       wfDebugLog( 
'FileOperationReplication',
+                                                               
"'{$backend->getName()}' async replication; paths: " .
+                                                               
FormatJson::encode( $relevantPaths ) );
                                                        $backend->doOperations( 
$realOps, $opts );
                                                }
                                        );
                                } else {
+                                       wfDebugLog( 'FileOperationReplication',
+                                               "'{$backend->getName()}' sync 
replication; paths: " .
+                                               FormatJson::encode( 
$relevantPaths ) );
                                        $status->merge( $backend->doOperations( 
$realOps, $opts ) );
                                }
                        }

-- 
To view, visit https://gerrit.wikimedia.org/r/275673
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I541eac740f4a07182067294c9597cdd49330e86c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>
Gerrit-Reviewer: Gilles <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to