Reserve lockmap timeline.

This commit is contained in:
Bartosz Taudul 2017-12-05 21:55:00 +01:00
parent 081087b9ce
commit b578554223

View File

@ -302,6 +302,7 @@ View::View( FileRead& f )
lockmap.threadList.emplace_back( t );
}
f.Read( &tsz, sizeof( tsz ) );
lockmap.timeline.reserve( tsz );
for( uint64_t i=0; i<tsz; i++ )
{
auto lev = m_slab.Alloc<LockEvent>();