Changeset 127

Show
Ignore:
Timestamp:
04/20/10 16:46:09 (4 years ago)
Author:
depesz
Message:

CRITICAL BUG:

If REDO segment offset was < 0x00100000 it caused generation of bogus segment filename, and in effect - removal of unused wal segments - as program thought these are "too old".

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/omnipitr/lib/OmniPITR/Program/Restore.pm

    r126 r127  
    228228    my ( $series, $offset ) = split m{/}, $segment; 
    229229 
    230     $offset =~ s/.{6}$//; 
     230    $offset =~ s/.{0,6}$//; 
    231231 
    232232    my $segment_filename = sprintf '%08s%08s%08s', $timeline, $series, $offset;