Changeset 31753
- Timestamp:
- 2017-06-26T16:01:43+12:00 (6 years ago)
- Location:
- main/trunk/greenstone2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/bin/script/buildcol.pl
r28801 r31753 256 256 'reqd' => "no", 257 257 'hiddengli' => "yes" }, 258 258 { 'name' => "activate", 259 259 'desc' => "{buildcol.activate}", 260 260 'type' => "flag", 261 'reqd' => "no", 262 'hiddengli' => "yes" }, 263 { 'name' => "skipactivation", 264 'desc' => "{buildcol.skipactivation}", 265 'type' => "flag", 266 'reqd' => "no", 267 'hiddengli' => "yes" }, 268 { 'name' => "library_url", 269 'desc' => "{buildcol.library_url}", 270 'type' => "string", 271 'reqd' => "no", 272 'hiddengli' => "yes" }, 273 { 'name' => "library_name", 274 'desc' => "{buildcol.library_name}", 275 'type' => "string", 261 276 'reqd' => "no", 262 277 'hiddengli' => "yes" }, … … 318 333 elsif ($subclass ne $required_subclass) 319 334 { 320 print STDERR "Error! You cannot specify arguments from two different exten tion specific buildcolutils modules: " . $subclass . " != " . $required_subclass . "\n";335 print STDERR "Error! You cannot specify arguments from two different extension specific buildcolutils modules: " . $subclass . " != " . $required_subclass . "\n"; 321 336 exit; 322 337 } … … 331 346 $buildcolutils = new $subclass(\@ARGV, $options); 332 347 } 333 # We don't have a overridden buildcolutils, or the above command failed348 # We don't have an overridden buildcolutils, or the above command failed 334 349 # somehow so load the base class 335 350 if (!defined $buildcolutils) -
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.