Show
Ignore:
Timestamp:
11.03.2009 13:19:22 (11 years ago)
Author:
kjdon
Message:

we now use gdb instead of ldb/bdb for collection and archives-inf databases. We have a rename step to rename any legacy databases

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/bin/script/export.pl

    r18590 r18660  
    501501    } elsif ($saveas =~ m/^.*METS$/ || $saveas eq "MARC" ) { 
    502502##  $expinfo_doc_filename = &util::filename_cat ($exportdir, "export.inf"); 
    503     my $db_ext = &util::is_little_endian() ? ".ldb" : ".bdb"; 
    504     my $doc_db = "archiveinf-doc$db_ext"; 
     503    my $doc_db = "archiveinf-doc"; 
    505504    $expinfo_doc_filename = &util::filename_cat ($exportdir, $doc_db); 
     505    &util::rename_gdbm_file($expinfo_doc_filename); # ensures gdb in case we have an existing legacy ldb one - can this happen? 
     506    $expinfo_doc_filename .= ".gdb"; 
     507 
    506508    } 
    507509