Made syncFileBackend.php clearer with handling --postime.
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 6 Mar 2013 23:19:23 +0000 (15:19 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Wed, 6 Mar 2013 23:19:28 +0000 (15:19 -0800)
Change-Id: I9462fb2aeef0597c3a7a0d1b0b4856ffea2460f6

maintenance/syncFileBackend.php

index a93ad79..8f6e419 100644 (file)
@@ -57,10 +57,11 @@ class SyncFileBackend extends Maintenance {
                        }
                        if ( $this->hasOption( 'postime' ) ) {
                                $id = (int)$src->getJournal()->getPositionAtTime( $this->getOption( 'postime' ) );
+                               $this->output( "Requested journal position is $id.\n" );
                        } else {
                                $id = (int)$src->getJournal()->getCurrentPosition();
+                               $this->output( "Current journal position is $id.\n" );
                        }
-                       $this->output( "Current journal position is $id.\n" );
                        if ( file_put_contents( $posFile, $id, LOCK_EX ) !== false ) {
                                $this->output( "Saved journal position file.\n" );
                        } else {