$this->output( "No stashed files to cleanup according to the DB.\n" );
} else {
// finish the read before starting writes.
$this->output( "No stashed files to cleanup according to the DB.\n" );
} else {
// finish the read before starting writes.
foreach ( $res as $row ) {
array_push( $keys, $row->us_key );
}
foreach ( $res as $row ) {
array_push( $keys, $row->us_key );
}
foreach ( $iterator as $file ) {
if ( wfTimestamp( TS_UNIX, $tempRepo->getFileTimestamp( "$dir/$file" ) ) < $cutoff ) {
foreach ( $iterator as $file ) {
if ( wfTimestamp( TS_UNIX, $tempRepo->getFileTimestamp( "$dir/$file" ) ) < $cutoff ) {
if ( count( $batch ) >= $this->mBatchSize ) {
$this->doOperations( $tempRepo, $batch );
$i += count( $batch );
if ( count( $batch ) >= $this->mBatchSize ) {
$this->doOperations( $tempRepo, $batch );
$i += count( $batch );
// Apparently lots of stash files are not registered in the DB...
$dir = $tempRepo->getZonePath( 'public' );
// Apparently lots of stash files are not registered in the DB...
$dir = $tempRepo->getZonePath( 'public' );
$this->output( "Deleting orphaned temp files...\n" );
if ( strpos( $dir, '/local-temp' ) === false ) { // sanity check
$this->error( "Temp repo is not using the temp container.", 1 ); // die
}
$i = 0;
$this->output( "Deleting orphaned temp files...\n" );
if ( strpos( $dir, '/local-temp' ) === false ) { // sanity check
$this->error( "Temp repo is not using the temp container.", 1 ); // die
}
$i = 0;
foreach ( $iterator as $file ) {
if ( wfTimestamp( TS_UNIX, $tempRepo->getFileTimestamp( "$dir/$file" ) ) < $cutoff ) {
foreach ( $iterator as $file ) {
if ( wfTimestamp( TS_UNIX, $tempRepo->getFileTimestamp( "$dir/$file" ) ) < $cutoff ) {
if ( count( $batch ) >= $this->mBatchSize ) {
$this->doOperations( $tempRepo, $batch );
$i += count( $batch );
if ( count( $batch ) >= $this->mBatchSize ) {
$this->doOperations( $tempRepo, $batch );
$i += count( $batch );