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

Deleting branch causes error in another session if that branch is active #4360

Closed
tbantle22 opened this issue Sep 16, 2022 · 0 comments · Fixed by #4395
Closed

Deleting branch causes error in another session if that branch is active #4360

tbantle22 opened this issue Sep 16, 2022 · 0 comments · Fixed by #4395
Assignees
Labels
bug Something isn't working sql Issue with SQL

Comments

@tbantle22
Copy link
Contributor

If I delete a branch that's the active branch in other session, I get stuck with a branch not found and I can't use any procedures to check out another branch.

To repro:

In session 1:

mysql> call dolt_checkout("-b", "testbranch");
+--------+
| status |
+--------+
|      0 |
+--------+
1 row in set (0.05 sec)

In session 2:

mysql> call dolt_branch("-D", "testbranch");
+--------+
| status |
+--------+
|      0 |
+--------+
1 row in set (0.05 sec)

In session 1 (dolt_status should fail, but I think I should be able to check out a branch that does exist):

mysql> select * from dolt_status;
ERROR 1105 (HY000): branch not found
mysql> call dolt_checkout("main");
ERROR 1105 (HY000): branch not found

Workaround is checking out another branch by using use db/main

@tbantle22 tbantle22 added bug Something isn't working sql Issue with SQL labels Sep 16, 2022
@jennifersp jennifersp self-assigned this Sep 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working sql Issue with SQL
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants