Changeset 30522 for main/trunk/greenstone2/perllib/buildcolutils.pm
- Timestamp:
- 2016-05-10T14:39:41+12:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/buildcolutils.pm
r30520 r30522 676 676 map { local $_=$_; $_->build_indexes($indexname, $indexlevel); } @builders; 677 677 678 # Need to deactivate the collection for collections whose db don't support concurrent R+W 679 # All except the collection (1st parameter) can be empty. For GS3, also set the site parameter 680 my $gsserver = new activate( $self->get_collection(), $self->{'site'}, $self->{'verbosity'}, $self->{'builddir'}, $self->{'indexdir'}, $self->{'collectdir'}, $self->{'library_url'}, $self->{'library_name'}); 681 678 682 # when incrementally rebuilding a collection using any db that doesn't support concurrent 679 683 # read and write (e.g. gdbm), need to deactivate the collection before make_infodatabase() … … 686 690 687 691 if(!$dbSupportsConcurrentRW) { 688 # all except the collection (1st parameter) can be empty. For GS3, also set the site parameter689 my $gsserver = new activate( $self->get_collection(), $self->{'site'}, $self->{'verbosity'}, $self->{'builddir'}, $self->{'indexdir'}, $self->{'collectdir'}, $self->{'library_url'}, $self->{'library_name'});690 692 $gsserver->print_task_msg("About to deactivate collection ".$self->get_collection()); 691 #$self->{'library_url'} = $gsserver->get_library_URL();692 693 $gsserver->do_deactivate(); 693 694 } … … 720 721 721 722 if(!$dbSupportsConcurrentRW) { 722 # all except the collection (1st parameter) can be empty. For GS3, also set the site parameter723 my $gsserver = new activate( $self->get_collection(), $self->{'site'}, $self->{'verbosity'}, $self->{'builddir'}, $self->{'indexdir'}, $self->{'collectdir'}, $self->{'library_url'}, $self->{'library_name'});724 723 $gsserver->print_task_msg("About to deactivate collection ".$self->get_collection()); 725 #$self->{'library_url'} = $gsserver->get_library_URL();726 724 $gsserver->do_deactivate(); 727 725 }
Note:
See TracChangeset
for help on using the changeset viewer.