Changeset 790

Show
Ignore:
Timestamp:
07/23/08 19:18:17 (16 months ago)
Author:
ykerherve
Message:

Fixed flush_all to only return success when there is a proper OK
returned by all the servers.

Location:
trunk/api/perl
Files:
1 added
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/api/perl/ChangeLog

    r710 r790  
     1        * flush_all now only returns success if there is a proper reply from all 
     2          servers - Yann Kerherve <yann@sixapart.com> 
     3         
    14        * 'noreply' support from Tomash Brechko <tomash.brechko@gmail.com> 
    25 
  • trunk/api/perl/lib/Cache/Memcached.pm

    r713 r790  
    784784        my $sock = $self->sock_to_host($host); 
    785785        my @res = $self->run_command($sock, "flush_all\r\n"); 
    786         $success = 0 unless (@res); 
     786        $success = 0 unless (scalar @res == 1 && (($res[0] || "") eq "OK\r\n")); 
    787787    } 
    788788