-
-
Notifications
You must be signed in to change notification settings - Fork 257
Load trace plugins via PluginManager and allow to set requeued plugins for trace session #8707
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ed plugins for trace session
The discussion: https://groups.google.com/u/1/g/firebird-devel/c/P93Ovd858wE |
src/jrd/trace/TraceManager.cpp
Outdated
|
||
for (FactoryInfo* info = factories->begin(); info != factories->end(); ++info) | ||
GetPlugins<ITraceFactory> traceItr(IPluginManager::TYPE_TRACE, session.getPluginsString()); | ||
for (; traceItr.hasData(); traceItr.next()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This plain-C style syntax (for-loop iterator declared before the loop) makes sense only when iterator is needed after the end of loop. Why not:
for (GetPlugins<ITraceFactory> traceItr(IPluginManager::TYPE_TRACE, session.getPluginsString());
traceItr.hasData(); traceItr.next())
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The line turned out to be too long. I didn't think about splitting the for operators
I added plugins printing to tracecmgr -LIST. Please review the changes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I going to merge this PR after we resolve last issues with spelling/docs
No description provided.