]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/SearchIdxShard.pm
favor readline() and print() as functions
[public-inbox.git] / lib / PublicInbox / SearchIdxShard.pm
index e754b038c54b0b5f4a83cdef61496eb4dcfdf2fd..c1f52d8b884fd7e723275f8e8c259aaf2ace4092 100644 (file)
@@ -53,7 +53,7 @@ sub shard_worker_loop ($$$$$) {
        my ($self, $v2w, $r, $shard, $bnote) = @_;
        $0 = "pi-v2-shard[$shard]";
        $self->begin_txn_lazy;
-       while (my $line = $r->getline) {
+       while (my $line = readline($r)) {
                $v2w->{current_info} = "[$shard] $line";
                if ($line eq "commit\n") {
                        $self->commit_txn_lazy;