Hyper Estraier URI is now host:share#num /path/to/file
authordpavlin <dpavlin@8392b6e1-25fa-0310-8288-cc32f8e212ea>
Sun, 29 Jan 2006 17:29:13 +0000 (17:29 +0000)
committerdpavlin <dpavlin@8392b6e1-25fa-0310-8288-cc32f8e212ea>
Sun, 29 Jan 2006 17:29:13 +0000 (17:29 +0000)
git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/BackupPC/trunk@313 8392b6e1-25fa-0310-8288-cc32f8e212ea

bin/BackupPC_updatedb

index 309bcd5..4a0ceb3 100755 (executable)
@@ -15,7 +15,7 @@ use BackupPC::SearchLib;
 use Cwd qw/abs_path/;
 
 use constant BPC_FTYPE_DIR => 5;
-use constant EST_CHUNK => 100000;
+use constant EST_CHUNK => 4096;
 
 # daylight saving time change offset for 1h
 my $dst_offset = 60 * 60;
@@ -198,9 +198,7 @@ sub hest_update {
 
                while (my $row = $sth->fetchrow_hashref()) {
 
-                       my $fid = $row->{'fid'} || die "no fid?";
-                       my $uri = 'file:///' . $fid;
-
+                       my $uri = $row->{hname} . ':' . $row->{sname} . '#' . $row->{backupnum} . ' ' . $row->{filepath};
                        unless ($skip_check) {
                                my $id = $hest_node->uri_to_id($uri);
                                next if ($id && $id == -1);