Skip to content

Commit

Permalink
Source/Readers/ReaderLib/: fix randomizer chunking
Browse files Browse the repository at this point in the history
  • Loading branch information
eldakms authored and mahilleb-msft committed Apr 15, 2016
1 parent 91e3da5 commit 7e2bb64
Show file tree
Hide file tree
Showing 4 changed files with 281 additions and 204 deletions.
3 changes: 3 additions & 0 deletions Source/Readers/ReaderLib/BlockRandomizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ BlockRandomizer::BlockRandomizer(
// Start a new epoch.
void BlockRandomizer::StartEpoch(const EpochConfiguration& config)
{
m_lastSeenChunkId = SIZE_MAX;

m_config = config;
if (config.m_totalEpochSizeInSamples == requestDataSize)
{
Expand Down Expand Up @@ -134,6 +136,7 @@ Sequences BlockRandomizer::GetNextSequences(size_t sampleCount)
}
}

m_sequenceRandomizer->ReleaseChunks();
return result;
}

Expand Down
Loading

0 comments on commit 7e2bb64

Please sign in to comment.