/[BackupPC]/trunk/bin/BackupPC_updatedb
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/bin/BackupPC_updatedb

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

revision 99 by dpavlin, Tue Aug 30 14:45:33 2005 UTC revision 104 by dpavlin, Wed Aug 31 11:05:26 2005 UTC
# Line 124  sub hest_update { Line 124  sub hest_update {
124          do {          do {
125    
126                  my $where = '';                  my $where = '';
127                    my @data;
128                  if ($host_id && $share_id && $num) {                  if ($host_id && $share_id && $num) {
129                          $where = qq{                          $where = qq{
130                          WHERE                          WHERE
# Line 131  sub hest_update { Line 132  sub hest_update {
132                                  shares.id = ? AND                                  shares.id = ? AND
133                                  files.backupnum = ?                                  files.backupnum = ?
134                          };                          };
135                            @data = ( $host_id, $share_id, $num );
136                  }                  }
137    
138                  my $limit = sprintf('LIMIT '.EST_CHUNK.' OFFSET %d', $offset);                  my $limit = sprintf('LIMIT '.EST_CHUNK.' OFFSET %d', $offset);
# Line 157  sub hest_update { Line 159  sub hest_update {
159                          $limit                          $limit
160                  });                  });
161    
162                  $sth->execute(@_);                  $sth->execute(@data);
163                  $results = $sth->rows;                  $results = $sth->rows;
164    
165                  if ($results == 0) {                  if ($results == 0) {

Legend:
Removed from v.99  
changed lines
  Added in v.104

  ViewVC Help
Powered by ViewVC 1.1.26