Remove postponed samples when they are handled.

This commit is contained in:
Bartosz Taudul 2021-11-14 23:55:44 +01:00
parent bb30333947
commit 641338cb3c
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -4377,6 +4377,14 @@ void Worker::DoPostponedWork()
cit = std::lower_bound( cit, ctx->v.end(), sit->time.Val(), [] ( const auto& l, const auto& r ) { return (uint64_t)l.End() < (uint64_t)r; } );
}
while( cit != ctx->v.end() );
if( sit == td->postponedSamples.end() )
{
td->postponedSamples.clear();
}
else
{
td->postponedSamples.erase( td->postponedSamples.begin(), sit );
}
}
}
}