Skip to content

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

Merged
hvlad merged 2 commits intomasterfrom
work/7692
Aug 4, 2023
Merged

Improvement #7692 : Make trace config parser resolve symlinks in database file path in trace configuration#7693
hvlad merged 2 commits intomasterfrom
work/7692

Conversation

@hvlad
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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