Ignore:
Timestamp:
03/11/09 13:19:22 (12 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

File:
1 edited

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       
Note: See TracChangeset for help on using the changeset viewer.