Skip to content

Commit

Permalink
Changes following review
Browse files Browse the repository at this point in the history
Signed-off-by: Shamser Ahmed <[email protected]>
  • Loading branch information
shamser committed Jan 21, 2025
1 parent f424a0e commit 48e5af6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions thorlcr/activities/indexwrite/thindexwriteslave.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class IndexWriteSlaveActivity : public ProcessSlaveActivity, public ILookAheadSt
StringAttr logicalFilename;
Owned<IPartDescriptor> partDesc, tlkDesc;
IHThorIndexWriteArg *helper;
Owned <IKeyBuilder> builder;
Owned<IKeyBuilder> builder;
Owned<IRowStream> myInputStream;
Owned<IPropertyTree> metadata;
Linked<IEngineRowAllocator> outRowAllocator;
Expand Down Expand Up @@ -237,7 +237,7 @@ class IndexWriteSlaveActivity : public ProcessSlaveActivity, public ILookAheadSt
{
// Clear out builder before merging builder stats into inactive stats
// so that gatherActiveStatistics doesn't also merge builder stats.
Owned <IKeyBuilder> tmpBuilder;
Owned<IKeyBuilder> tmpBuilder;
{
CriticalBlock b(builderCS);
tmpBuilder.setown(builder.getClear());
Expand All @@ -253,7 +253,6 @@ class IndexWriteSlaveActivity : public ProcessSlaveActivity, public ILookAheadSt
leafMemorySize = tmpBuilder->getLeafMemorySize();
}
mergeStats(inactiveStats, tmpBuilder, indexWriteActivityStatistics);
tmpBuilder.clear();
}
}
}
Expand Down

0 comments on commit 48e5af6

Please sign in to comment.