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.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • 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