Changeset 31753 for main/trunk/greenstone2/perllib/buildcolutils.pm
- Timestamp:
- 2017-06-26T16:01:43+12:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/buildcolutils.pm
r30523 r31753 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+W678 # If incremental, need to deactivate the collection for collections whose db don't support concurrent R+W 679 679 # All except the collection (1st parameter) can be empty. For GS3, also set the site parameter 680 680 my $gsserver = new servercontrol( $self->get_collection(), $self->{'site'}, $self->{'verbosity'}, $self->{'builddir'}, $self->{'indexdir'}, $self->{'collectdir'}, $self->{'library_url'}, $self->{'library_name'}); 681 681 682 # when incrementally rebuilding a collection using any db that doesn'tsupport concurrent682 # when *incrementally* rebuilding a collection using any db that *doesn't* support concurrent 683 683 # read and write (e.g. gdbm), need to deactivate the collection before make_infodatabase() 684 684 map { … … 689 689 my $dbSupportsConcurrentRW = &dbutil::supportsConcurrentReadAndWrite($infodbtype); 690 690 691 if(!$dbSupportsConcurrentRW ) {691 if(!$dbSupportsConcurrentRW && $self->{'incremental'}) { 692 692 $gsserver->print_task_msg("About to deactivate collection ".$self->get_collection()); 693 693 $gsserver->do_deactivate(); … … 713 713 local $_=$_; 714 714 715 # when incrementally rebuilding a collection using any db that doesn'tsupport concurrent715 # when *incrementally* rebuilding a collection using any db that *doesn't* support concurrent 716 716 # read and write (e.g. gdbm), need to deactivate the collection before make_infodatabase() 717 717 … … 720 720 my $dbSupportsConcurrentRW = &dbutil::supportsConcurrentReadAndWrite($infodbtype); 721 721 722 if(!$dbSupportsConcurrentRW ) {722 if(!$dbSupportsConcurrentRW && $self->{'incremental'}) { 723 723 $gsserver->print_task_msg("About to deactivate collection ".$self->get_collection()); 724 724 $gsserver->do_deactivate();
Note:
See TracChangeset
for help on using the changeset viewer.