Skip to content

Commit

Permalink
HPCC-19906 Remove redundant code (rcflag_noAllInMemSort)
Browse files Browse the repository at this point in the history
Signed-off-by: Jake Smith <jake.smith@lexisnexisrisk.com>
  • Loading branch information
jakesmith committed Jun 20, 2018
1 parent e1c2c11 commit b499b8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
10 changes: 3 additions & 7 deletions thorlcr/thorutil/thmem.cpp
Expand Up @@ -1715,13 +1715,9 @@ class CThorRowCollectorBase : public CSpillable
totalRows += spillableRows.numCommitted();
if (iCompare)
{
// Option(rcflag_noAllInMemSort) - avoid sorting allMemRows
if ((nullptr == allMemRows) || (0 == (options & rcflag_noAllInMemSort)))
{
CCycleTimer timer;
spillableRows.sort(*iCompare, maxCores);
sortCycles += timer.elapsedCycles();
}
CCycleTimer timer;
spillableRows.sort(*iCompare, maxCores);
sortCycles += timer.elapsedCycles();
}

if ((rc_allDiskOrAllMem == diskMemMix) || // must supply allMemRows, only here if no spilling (see above)
Expand Down
1 change: 0 additions & 1 deletion thorlcr/thorutil/thmem.hpp
Expand Up @@ -526,7 +526,6 @@ class graph_decl CThorSpillableRowArray : private CThorExpandingRowArray, implem


enum RowCollectorSpillFlags { rc_mixed, rc_allMem, rc_allDisk, rc_allDiskOrAllMem };
enum RowCollectorOptionFlags { rcflag_noAllInMemSort=0x01 };
interface IThorRowCollectorCommon : extends IInterface, extends IThorArrayLock
{
virtual rowcount_t numRows() const = 0;
Expand Down

0 comments on commit b499b8a

Please sign in to comment.