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:
c1394f4
)
Free up some memory by unsetting large arrays in backend copy script.
author
Aaron Schulz
<aschulz@wikimedia.org>
Wed, 18 Jul 2012 06:25:30 +0000
(23:25 -0700)
committer
Aaron Schulz
<aschulz@wikimedia.org>
Wed, 18 Jul 2012 06:25:30 +0000
(23:25 -0700)
Change-Id: I55b6a6f8228370d948821dcd4de22fda51539fd0
maintenance/copyFileBackend.php
patch
|
blob
|
history
diff --git
a/maintenance/copyFileBackend.php
b/maintenance/copyFileBackend.php
index
544f48b
..
498bc6b
100644
(file)
--- a/
maintenance/copyFileBackend.php
+++ b/
maintenance/copyFileBackend.php
@@
-90,6
+90,8
@@
class CopyFileBackend extends Maintenance {
// Only copy the missing files over in the next loop
$srcPathsRel = array_diff( $relFilesSrc, $relFilesDst );
$this->output( count( $srcPathsRel ) . " file(s) need to be copied.\n" );
+ unset( $relFilesSrc );
+ unset( $relFilesDst );
}
$batchPaths = array();