dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1232f37
)
Fix ip_changes insert counting
author
Max Semenik
<maxsem.wiki@gmail.com>
Wed, 20 Sep 2017 20:39:49 +0000
(13:39 -0700)
committer
Max Semenik
<maxsem.wiki@gmail.com>
Wed, 20 Sep 2017 20:39:49 +0000
(13:39 -0700)
Change-Id: I02b457d9dcaadc97eead623e42a5a1ccf8335724
maintenance/populateIpChanges.php
patch
|
blob
|
history
diff --git
a/maintenance/populateIpChanges.php
b/maintenance/populateIpChanges.php
index
2b2a2b4
..
40a596c
100644
(file)
--- a/
maintenance/populateIpChanges.php
+++ b/
maintenance/populateIpChanges.php
@@
-110,14
+110,11
@@
TEXT
}
}
- $dbw->insert(
- 'ip_changes',
- $insertRows,
- __METHOD__,
- 'IGNORE'
- );
+ if ( $insertRows ) {
+ $dbw->insert( 'ip_changes', $insertRows, __METHOD__, 'IGNORE' );
- $inserted += $dbw->affectedRows();
+ $inserted += $dbw->affectedRows();
+ }
$lbFactory->waitForReplication();
usleep( $throttle * 1000 );