projects
/
BackupPC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
numeric_padding values are used in range search, and muse be sortable
[BackupPC.git]
/
bin
/
BackupPC_updatedb
diff --git
a/bin/BackupPC_updatedb
b/bin/BackupPC_updatedb
index
69725af
..
a0d0069
100755
(executable)
--- a/
bin/BackupPC_updatedb
+++ b/
bin/BackupPC_updatedb
@@
-11,12
+11,10
@@
use Getopt::Std;
use Time::HiRes qw/time/;
use File::Pid;
use POSIX qw/strftime/;
use Time::HiRes qw/time/;
use File::Pid;
use POSIX qw/strftime/;
-use BackupPC::Search
Lib
;
+use BackupPC::Search;
use Cwd qw/abs_path/;
use Data::Dump qw(dump);
use Cwd qw/abs_path/;
use Data::Dump qw(dump);
-use BackupPC::Search::Estraier;
-
use constant BPC_FTYPE_DIR => 5;
use constant EST_CHUNK => 4096;
use constant BPC_FTYPE_DIR => 5;
use constant EST_CHUNK => 4096;
@@
-121,7
+119,7
@@
sub hest_update {
my $offset = 0;
my $added = 0;
my $offset = 0;
my $added = 0;
- my $search = BackupPC::Search
::Estraier->new( $index_node_url )
;
+ my $search = BackupPC::Search
->search_module
;
my $results = 0;
my $results = 0;
@@
-192,6
+190,8
@@
sub hest_update {
} while ($results == EST_CHUNK);
} while ($results == EST_CHUNK);
+ $search->commit;
+
my $dur = (time() - $t) || 1;
printf(" [%.2f/s dur: %s]\n",
( $added / $dur ),
my $dur = (time() - $t) || 1;
printf(" [%.2f/s dur: %s]\n",
( $added / $dur ),