Output journal snapshot as a single transaction.

This commit is contained in:
Jonathan Moore Liles 2008-05-04 02:35:35 -05:00
parent 594f711533
commit 727b256b4b
1 changed files with 4 additions and 0 deletions

View File

@ -382,6 +382,8 @@ Loggable::snapshot( FILE *fp )
return false;
}
block_start();
for ( int i = 0; i < _log_id; ++i )
{
const Loggable * l = _loggables[ i ];
@ -390,6 +392,8 @@ Loggable::snapshot( FILE *fp )
l->log_create();
}
block_end();
_fp = ofp;
return true;