Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
jakesmith committed Jun 25, 2024
1 parent 2b71ffb commit f877085
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion thorlcr/activities/thactivityutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ class CRowStreamLookAhead : public CSimpleInterfaceOf<IStartableEngineRowStream>
count = 0;

newLookAhead = activity.getOptBool("newlookahead", false);
if (activity.getOptBool("forcenewlookahead", false))
if (activity.getOptBool("forcenewlookahead", true)) // JCSMORE - temporarily force newlookahead
{
newLookAhead = true;
allowspill = true;
Expand Down
5 changes: 3 additions & 2 deletions thorlcr/thorutil/thbuf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ class CSmartRowInMemoryBuffer: public CSimpleInterface, implements ISmartRowBuff
// based on query that produces records with a single sequential (from 1) unsigned4
// #define VERIFY_ROW_IDS_SPILLING_ROWSTREAM

//#define STRESSTEST_SPILLING_ROWSTREAM // 'stressLookAhead' code, which when enabled, reduces buffer sizes etc. to stress test the lookahead spilling
#define STRESSTEST_SPILLING_ROWSTREAM // 'stressLookAhead' code, which when enabled, reduces buffer sizes etc. to stress test the lookahead spilling



Expand Down Expand Up @@ -979,7 +979,7 @@ class CCompressedSpillingRowStream: public CSimpleInterfaceOf<ISmartRowBuffer>,
size32_t minSize = meta->getMinRecordSize();

#ifdef STRESSTEST_SPILLING_ROWSTREAM
stressTest = activity.getOptBool("stressLookAhead");
stressTest = activity.getOptBool("stressLookAhead", true); // JCSMORE temporarily defaulting to true
if (stressTest)
{
options.inMemMaxMem = minSize * 4;
Expand Down Expand Up @@ -1078,6 +1078,7 @@ class CCompressedSpillingRowStream: public CSimpleInterfaceOf<ISmartRowBuffer>,
case rs_stopped:
return nullptr;
}
throwUnexpected();
}
virtual void stop() override
{
Expand Down

0 comments on commit f877085

Please sign in to comment.