fix infinite recursion when LogCheckpoints

This commit is contained in:
Glenn Maynard
2004-10-05 14:59:30 +00:00
parent 4223746b6e
commit 246281574d
-4
View File
@@ -320,19 +320,15 @@ int RageFileObjDirect::Flush()
if( !write_buf.size() )
return 0;
CHECKPOINT;
int ret = retried_write( fd, write_buf.data(), write_buf.size() );
CHECKPOINT;
if( ret == -1 )
{
LOG->Warn("Error writing %s: %s", this->path.c_str(), strerror(errno) );
SetError( strerror(errno) );
}
CHECKPOINT;
write_buf.erase();
write_buf.reserve( BUFSIZE );
CHECKPOINT;
return ret;
}