/[Sack]/trunk/lib/Sack/Server.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/lib/Sack/Server.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 210 by dpavlin, Sat Nov 21 15:55:24 2009 UTC revision 211 by dpavlin, Sat Nov 21 16:12:18 2009 UTC
# Line 39  $sel->add( $www ); Line 39  $sel->add( $www );
39  my $info;  my $info;
40  sub info {  sub info {
41          my $port = shift;          my $port = shift;
42          push @{ $info->{$port} }, [ @_ ];          push @{ $info->{node}->{$port} }, [ @_ ];
43  }  }
44    
45  sub fork_ssh {  sub fork_ssh {
# Line 109  warn "XXX callback ",dump( @_ ); Line 109  warn "XXX callback ",dump( @_ );
109                                  warn "<<<< ", dump($data), $/;                                  warn "<<<< ", dump($data), $/;
110    
111                                  if ( my $path = $data->{shard} ) {                                  if ( my $path = $data->{shard} ) {
112                                          push @{ $info->{shard}->{ $data->{port} } }, $path;                                          $info->{shard}->{ $path } = $data->{port};
113                                            # FIXME will need push for multiple copies of shards
114                                  }                                  }
115    
116                                  if ( my $repl = $data->{repl} ) {                                  if ( my $repl = $data->{repl} ) {

Legend:
Removed from v.210  
changed lines
  Added in v.211

  ViewVC Help
Powered by ViewVC 1.1.26