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:
168afc0
)
Avoid duplicate "null" change journal entries.
author
Aaron Schulz
<aschulz@wikimedia.org>
Fri, 26 Oct 2012 22:01:01 +0000
(15:01 -0700)
committer
Aaron Schulz
<aschulz@wikimedia.org>
Fri, 26 Oct 2012 22:01:01 +0000
(15:01 -0700)
Change-Id: Ie5625963d4755b7aa7b3ecf3aaca0eb9e9e22cf5
includes/filebackend/FileOp.php
patch
|
blob
|
history
diff --git
a/includes/filebackend/FileOp.php
b/includes/filebackend/FileOp.php
index
7c43c48
..
3c33f24
100644
(file)
--- a/
includes/filebackend/FileOp.php
+++ b/
includes/filebackend/FileOp.php
@@
-179,7
+179,7
@@
abstract class FileOp {
$updateEntries = array();
$deleteEntries = array();
$pathsUsed = array_merge( $this->storagePathsRead(), $this->storagePathsChanged() );
- foreach (
$pathsUsed
as $path ) {
+ foreach (
array_unique( $pathsUsed )
as $path ) {
$nullEntries[] = array( // assertion for recovery
'op' => 'null',
'path' => $path,