Timeline: Don't assert if peakfile contains no blocks---it's probably just because it was just opened and hasn't been written into yet.
This commit is contained in:
parent
793a9c1d4b
commit
20dce6c6e6
|
@ -188,7 +188,10 @@ public:
|
|||
}
|
||||
|
||||
if ( ! blocks.size() )
|
||||
FATAL( "Peak file contains no blocks!" );
|
||||
{
|
||||
DWARNING( "Peak file contains no blocks, maybe it's still being generated?");
|
||||
return;
|
||||
}
|
||||
|
||||
blocks.sort();
|
||||
|
||||
|
@ -258,9 +261,19 @@ public:
|
|||
|
||||
scan( chunksize );
|
||||
|
||||
assert( _chunksize );
|
||||
/* assert( _chunksize ); */
|
||||
|
||||
return true;
|
||||
if ( blocks.size() )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
DWARNING( "Peak file could not be opened: no blocks" );
|
||||
fclose(_fp);
|
||||
_fp = NULL;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
Loading…
Reference in New Issue