Skip to content

Improvement #7692 : Make trace config parser resolve symlinks in database file path in trace configuration #7693

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

Merged
merged 2 commits into from
Aug 4, 2023

Conversation

hvlad
Copy link
Member

@hvlad hvlad commented Aug 2, 2023

No description provided.

@hvlad hvlad self-assigned this Aug 2, 2023
expandDatabaseName(noQuotePattern, expandedName, nullptr) &&
m_databaseName == expandedName)
(expandDatabaseName(noQuotePattern, expandedName, nullptr),
m_databaseName == expandedName) )
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why would you like to compare m_databaseName with garbage in expandedName if expandDatabaseName() failed?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"false" returned by expandDatabaseName does not mean that we got garbage in expandedName. It just reports that alias was not found in databases.conf, rarely that info is (or 'was' - not sure for today) needed to the caller.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

expandedName always contains the most correct name of DB file

@hvlad hvlad merged commit f4c22d3 into master Aug 4, 2023
@hvlad hvlad deleted the work/7692 branch August 4, 2023 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make trace config parser resolve symlinks in database file path in trace configuration
3 participants