Skip to content
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

turn off opt-in feature for unix socket #4413

Merged
merged 3 commits into from
Sep 28, 2022
Merged

turn off opt-in feature for unix socket #4413

merged 3 commits into from
Sep 28, 2022

Conversation

jennifersp
Copy link
Contributor

@jennifersp jennifersp commented Sep 27, 2022

Initial implementation of unix socket has opt-in feature for unix socket support. The default of mysql unix socket when socket flag is not defined is when host is defined as 'localhost' or undefined.

Copy link
Contributor

@fulghum fulghum left a comment

Choose a reason for hiding this comment

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

Looks good! Exciting to turn this feature on by default now!

go/cmd/dolt/commands/sqlserver/server.go Outdated Show resolved Hide resolved
skiponwindows "unix socket is not available on Windows"
cd repo2
DEFAULT_DB="repo2"
let PORT="$$ % (65536-1024) + 1024"
Copy link
Contributor

Choose a reason for hiding this comment

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

(future-refactoring) Not necessary for this PR, but just an idea for future refactoring/cleanup... it would be cool if we had a standard helper function we could call that would select a good port and potentially even check that it's not in use yet. Looks like this port selection code is in this BATS file a couple dozen times, so good candidate for a helper function. Not needed for this review, just sharing a future refactoring thought.

Copy link
Contributor

Choose a reason for hiding this comment

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

Speaking of... this actually bit me this afternoon in a BATS run! one of the sql-server tests selected a port that was already in use and I had to restart the run. This would be a nice little cleanup task for the sql-server tests. 😄

@jennifersp jennifersp merged commit 4565f37 into main Sep 28, 2022
@jennifersp jennifersp deleted the jennifer/unix branch September 28, 2022 17:28
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.

None yet

2 participants