Ignore:
Timestamp:
2016-05-09T16:53:48+12:00 (8 years ago)
Author:
ak19
Message:

Fixing incremental-rebuild when the database is gdbm. At this point (see buildcolutils.pm), the code needs to deactivate the collection before calling make_infodatabase(), since otherwise there's a lock on the gdbm database which prevents successful incremental-rebuild and activation.

Location:
main/trunk/greenstone2/perllib/DBDrivers
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/DBDrivers/BaseDBDriver.pm

    r30370 r30517  
    5757    $self->{'supports_persistentconnection'} = 0;
    5858    $self->{'supports_rss'} = 0;
     59    $self->{'supports_concurrent_read_and_write'} = 0;
    5960    $self->{'supports_set'} = 0;
    6061    $self->{'write_only'} = 0; # Some drivers are one way - i.e. STDOUTXML
     
    383384
    384385
     386## @function supportsConcurrentReadAndWrite(void)  => integer
     387#
     388sub supportsConcurrentReadAndWrite
     389{
     390    my $self = shift(@_);
     391    return $self->{'supports_concurrent_read_and_write'};
     392}
     393## supportsConcurrentReadAndWrite(void) => integer ##
     394
     395
    385396## @function supportsSet(void) => integer
    386397#
  • main/trunk/greenstone2/perllib/DBDrivers/JDBM.pm

    r30370 r30517  
    5050    my $self = DBDrivers::70HyphenFormat->new(@_);
    5151    $self->{'default_file_extension'} = 'jdb';
     52    $self->{'supports_concurrent_read_and_write'} = 1;
    5253
    5354    # Executables need a little extra work since we are using Java
Note: See TracChangeset for help on using the changeset viewer.