Changeset 21557

Show
Ignore:
Timestamp:
21.01.2010 14:38:48 (9 years ago)
Author:
mdewsnip
Message:

Changed calls to GDBMUtils::gdbmDatabaseSet() to dbutil::convert_infodb_string_to_hash() + dbutil::write_infodb_entry(). Part of removing GDBMUtils.pm and making the code less GDBM-specific.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/inexport.pm

    r21554 r21557  
    339339        my $val = &dbutil::read_infodb_entry("gdbm", $arcinfo_doc_filename, $oid); 
    340340        $val =~ s/^<index-status>(.*)$/<index-status>D/m; 
    341         &GDBMUtils::gdbmDatabaseSet($arcinfo_doc_filename,$oid,$val); 
     341 
     342        my $val_rec = &dbutil::convert_infodb_string_to_hash($val); 
     343        my $infodb_file_handle = &dbutil::open_infodb_write_handle("gdbm", $arcinfo_doc_filename, "append"); 
     344        &dbutil::write_infodb_entry("gdbm", $infodb_file_handle, $oid, $val_rec); 
     345        &dbutil::close_infodb_write_handle("gdbm", $infodb_file_handle); 
    342346        } 
    343347    }