Skip to content

Commit

Permalink
Missed use of compoundOwnedFilter.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Klemm authored and Tim Klemm committed Feb 10, 2025
1 parent cbb17e0 commit c03c4a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions esp/services/ws_workunits/ws_workunitsHelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4270,9 +4270,9 @@ void CWsWuFileHelper::readWULogToFiles(IConstWorkUnit *cwu, WsWuInfo &winfo, con
ForEach(*iter)
{
const char *processName = iter->query().queryProp("@podName");
Owned<ILogAccessFilter> podFilter = getPodLogAccessFilter(processName);
ILogAccessFilter *processLogFetchFilter = getBinaryLogAccessFilter(logFetchFilter, podFilter, LOGACCESS_FILTER_and);
zapLogFilterOptions.logFilter.logFetchOptions.setFilter(processLogFetchFilter);
Owned<ILogAccessFilter> processLogFetchFilter(logFetchFilter.getLink()); // retain original for next iteration
compoundOwnedFilter(processLogFetchFilter, getPodLogAccessFilter(processName), LOGACCESS_FILTER_and);
zapLogFilterOptions.logFilter.logFetchOptions.setFilter(processLogFetchFilter.getClear());

VStringBuffer processLog("%s%c%s-%s-log.%s", path, PATHSEPCHAR, wuid, processName, logfileextension.str());
readWULogToFile(processLog, winfo, zapLogFilterOptions);
Expand Down

0 comments on commit c03c4a8

Please sign in to comment.