if ( $status->isOK() ) {
$lastOKPos = max( $lastOKPos, $lastPosInBatch );
} else {
- $this->output( print_r( $status->getErrorsArray(), true ) );
+ $this->error( print_r( $status->getErrorsArray(), true ) );
break; // no gaps; everything up to $lastPos must be OK
}
}
$fsFiles[] = $fsFile; // keep TempFSFile objects alive as needed
// Note: prepare() is usually fast for key/value backends
- $status->merge( $dst->prepare( array( 'dir' => dirname( $dPath ) ) ) );
+ $status->merge( $dst->prepare( array(
+ 'dir' => dirname( $dPath ), 'bypassReadOnly' => 1 ) ) );
if ( !$status->isOK() ) {
return $status;
}
}
$t_start = microtime( true );
- $status->merge( $dst->doOperations( $ops,
- array( 'nonLocking' => 1, 'nonJournaled' => 1 ) ) );
+ $status->merge( $dst->doQuickOperations( $ops, array( 'bypassReadOnly' => 1 ) ) );
$ellapsed_ms = floor( ( microtime( true ) - $t_start ) * 1000 );
if ( $status->isOK() && $this->getOption( 'verbose' ) ) {
$this->output( "Synchronized these file(s) [{$ellapsed_ms}ms]:\n" .