Avoid duplicate "null" change journal entries.
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 26 Oct 2012 22:01:01 +0000 (15:01 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 26 Oct 2012 22:01:01 +0000 (15:01 -0700)
Change-Id: Ie5625963d4755b7aa7b3ecf3aaca0eb9e9e22cf5

includes/filebackend/FileOp.php

index 7c43c48..3c33f24 100644 (file)
@@ -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,