Skip to content

Commit

Permalink
Tweak grep do ease parallel testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
grafikrobot committed Aug 19, 2023
1 parent 78a3384 commit 8053b4a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/engine/mod_regex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,12 @@ struct regex_grep_task
if (glob(glob_pattern->str(), filename.c_str()) == 0)
{
// We have a glob match for this file.
auto filedata = file_preload(filepath);
file_grep(filepath, *filedata);
auto do_grep = [this, filepath]() {
auto filedata = file_preload(filepath);
file_grep(filepath, *filedata);
};
do_grep();
// grep_tasks->queue(do_grep);
}
}
return;
Expand Down

0 comments on commit 8053b4a

Please sign in to comment.