Changeset 27319

Show
Ignore:
Timestamp:
09.05.2013 13:31:55 (6 years ago)
Author:
ak19
Message:

key DB is gdbm and has no way of changing the DB type. Can't use infodbtype to work out its DB type, especially as infodbtype can be different on a per collection basis.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/cgiactions/baseaction.pm

    r27318 r27319  
    330330            my $current_time = strftime("%Y/%m/%d %H:%M:%S\n", localtime($current_timestamp)); # POSIX 
    331331             
    332             my $infodbtype = $self->{'infodbtype'}; 
    333             my $key_rec = &dbutil::read_infodb_entry($infodbtype, $key_db_file_path, $user_key); 
     332            # infodbtype can be different for different collections, but the key DB is gdbm 
     333            my $key_rec = &dbutil::read_infodb_entry("gdbm", $key_db_file_path, $user_key); 
    334334            $key_rec->{"time"}->[0] = $current_time; 
    335335            my $status = &dbutil::set_infodb_entry($infodbtype, $key_db_file_path, $user_key, $key_rec);