Soeren.oldag has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/216073

Change subject: Fixed DumpMetaInformationRepoTest.
......................................................................

Fixed DumpMetaInformationRepoTest.

Change-Id: Id25a0d218256d882ba7840b075a272d854ea6047
---
M includes/DumpMetaInformation/DumpMetaInformationRepo.php
1 file changed, 3 insertions(+), 3 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikidataQualityExternalValidation
 refs/changes/73/216073/1

diff --git a/includes/DumpMetaInformation/DumpMetaInformationRepo.php 
b/includes/DumpMetaInformation/DumpMetaInformationRepo.php
index 762f5ad..b2b7dd1 100755
--- a/includes/DumpMetaInformation/DumpMetaInformationRepo.php
+++ b/includes/DumpMetaInformation/DumpMetaInformationRepo.php
@@ -249,10 +249,10 @@
      * @param DumpMetaInformation $dumpMetaInformation
      */
     public function save( DumpMetaInformation $dumpMetaInformation ) {
-        $dumpId = $dumpMetaInformation->getDumpId();
-        $accumulator = $this->getDumpInformationArray( $dumpMetaInformation );
-
         $db = wfGetDB( DB_SLAVE );
+        $dumpId = $dumpMetaInformation->getDumpId();
+        $accumulator = $this->getDumpInformationArray( $db, 
$dumpMetaInformation );
+
         $existing = $db->selectRow(
             $this->dumpMetaTableName,
             array( 'dump_id' ),

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id25a0d218256d882ba7840b075a272d854ea6047
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikidataQualityExternalValidation
Gerrit-Branch: master
Gerrit-Owner: Soeren.oldag <[email protected]>

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

Reply via email to