dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Add largest allowed range as parameter to block form message"
[lhc/web/wiklou.git]
/
maintenance
/
deleteArchivedFiles.php
diff --git
a/maintenance/deleteArchivedFiles.php
b/maintenance/deleteArchivedFiles.php
index
bd8ca10
..
94ebf87
100644
(file)
--- a/
maintenance/deleteArchivedFiles.php
+++ b/
maintenance/deleteArchivedFiles.php
@@
-47,7
+47,7
@@
class DeleteArchivedFiles extends Maintenance {
# Data should come off the master, wrapped in a transaction
$dbw = $this->getDB( DB_MASTER );
# Data should come off the master, wrapped in a transaction
$dbw = $this->getDB( DB_MASTER );
- $
dbw->begin(
__METHOD__ );
+ $
this->beginTransaction( $dbw,
__METHOD__ );
$repo = RepoGroup::singleton()->getLocalRepo();
# Get "active" revisions from the filearchive table
$repo = RepoGroup::singleton()->getLocalRepo();
# Get "active" revisions from the filearchive table
@@
-113,7
+113,7
@@
class DeleteArchivedFiles extends Maintenance {
$dbw->delete( 'filearchive', array( 'fa_id' => $id ), __METHOD__ );
}
$dbw->delete( 'filearchive', array( 'fa_id' => $id ), __METHOD__ );
}
- $
dbw->commit(
__METHOD__ );
+ $
this->commitTransaction( $dbw,
__METHOD__ );
$this->output( "Done! [$count file(s)]\n" );
}
}
$this->output( "Done! [$count file(s)]\n" );
}
}