Changeset 25401

Show
Ignore:
Timestamp:
18.04.2012 10:21:00 (8 years ago)
Author:
jmt12
Message:

Extend the code that 'pre-started' the GDBMServer to pre-start any infodbtype ending with *server (to support the new TDBServer)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gs2-extensions/parallel-building/trunk/src/perllib/inexport.pm

    r25116 r25401  
    482482    # This is done so that, in parallel importing, the server will persist 
    483483    # until the top level import.pl (which will be the first this that calls 
    484     # this function) completes. 
    485     my $arcinfo_doc_filename = &dbutil::get_infodb_file_path($collectcfg->{'infodbtype'}, "archiveinf-doc", $archivedir, 1); 
    486     my $arcinfo_src_filename = &dbutil::get_infodb_file_path($collectcfg->{'infodbtype'}, "archiveinf-src", $archivedir, 1); 
     484    # this function) completes. [jmt12] 
     485    my $create_server = 0; 
     486    # - infodb's of type *server need to be started on the same machine that 
     487    #   runs parallel-import.sh, especially when distributed processing 
     488    #   gets involved. 
     489    if ($collectcfg->{'infodbtype'} =~ /server$/) 
     490    { 
     491      $create_server = 1; 
     492    } 
     493    my $arcinfo_doc_filename = &dbutil::get_infodb_file_path($collectcfg->{'infodbtype'}, "archiveinf-doc", $archivedir, $create_server); 
     494    my $arcinfo_src_filename = &dbutil::get_infodb_file_path($collectcfg->{'infodbtype'}, "archiveinf-src", $archivedir, $create_server); 
    487495 
    488496    my $archive_info = new arcinfo ($collectcfg->{'infodbtype'}); 
     
    589597    if ($manifest eq '' || (defined $collectcfg->{'complexmeta'} && $collectcfg->{'complexmeta'} eq 'true')) 
    590598    { 
    591       print "Temporarily skipping global file scan as it is slow as molasses\n"; 
    592       #&plugin::file_block_read($pluginfo, $importdir, "", $block_hash, $metadata, $gli); 
     599      #print "Temporarily skipping global file scan as it is slow as molasses\n"; 
     600      &plugin::file_block_read($pluginfo, $importdir, "", $block_hash, $metadata, $gli); 
    593601    } 
    594602    else