Make the streaming version stream
authorMike Rylander <mrylander@gmail.com>
Mon, 17 Oct 2011 16:27:04 +0000 (12:27 -0400)
committerBill Erickson <berick@esilibrary.com>
Thu, 9 Feb 2012 19:59:14 +0000 (14:59 -0500)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/action.pm

index 10f309f..da6a2ce 100644 (file)
@@ -347,7 +347,7 @@ sub targetable_holds {
     my $sth = action::hold_request->db_Main->prepare_cached($query);
     $sth->execute($check_expire);
 
-    $client->respond( $_ ) for ( $sth->fetchall_arrayref );
+    $client->respond( $_ ) while ( $sth->fetchrow_arrayref );
     return undef;
 }