Changeset 209

Show
Ignore:
Timestamp:
01/05/11 21:15:44 (3 years ago)
Author:
depesz
Message:

Fix lack of stub, which could cause problems in case new class inherited O::Program::Backup. Spotted by Brian Dunavant

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/omnipitr/doc/changes.pod

    r186 r209  
    11=head1 OmniPITR 
     2 
     3=head2 2011-01-05 
     4 
     5=over 
     6 
     7=item * Add proper stub for make_xlog_archive in OmniPITR::Program::Backup, that 
     8enforces reimplementation in child classes. 
     9 
     10=back 
    211 
    312=head2 2010-09-28 
     
    918 
    1019=back 
    11  
    1220 
    1321=head2 2010-09-10 
  • trunk/omnipitr/lib/OmniPITR/Program/Backup.pm

    r179 r209  
    3838    $self->log->log( 'All done.' ); 
    3939    return; 
     40} 
     41 
     42=head1 make_xlog_archive() 
     43 
     44Just a stub method, that has to be overriden in subclasses. 
     45 
     46=cut 
     47 
     48sub make_xlog_archive { 
     49    my $self = shift; 
     50    croak( "make_xlog_archive() method in OmniPITR::Program::Backup was not overridden!" ); 
    4051} 
    4152