-
-
Notifications
You must be signed in to change notification settings - Fork 141
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
bug: truncate table failed #759
Labels
Milestone
Comments
hustjieke
added
A-bug
Something isn't working
C-stonedb-8.0
associated with stonedb 8.0
labels
Oct 19, 2022
When mysql has done locked table in function
btrace in gdb when doing
|
hustjieke
added a commit
to hustjieke/stonedb-8.0.30-upgrade
that referenced
this issue
Oct 25, 2022
[summary] 1. Fix close_all_tables_for_name() before the txn is commited. 2. In file sql_trunction.cc and function end_transaction(), will call CommitTx() twice, In CommitTx() skip for the first time, called in trans_commit_stmt(), thd->server_status = SERVER_STATUS_IN_TRANS and all = false then called in trans_commit_implicit(), thd->server_status will be set "~SERVER_STATUS_IN_TRANS", and all = true
15 tasks
hustjieke
added a commit
to hustjieke/stonedb-8.0.30-upgrade
that referenced
this issue
Oct 26, 2022
[summary] 1. Fix close_all_tables_for_name() before the txn is commited. 2. In file sql_trunction.cc and function end_transaction(), will call CommitTx() twice, In CommitTx() skip for the first time, called in trans_commit_stmt(), thd->server_status = SERVER_STATUS_IN_TRANS and all = false then called in trans_commit_implicit(), thd->server_status will be set "~SERVER_STATUS_IN_TRANS", and all = true
mergify bot
pushed a commit
that referenced
this issue
Oct 26, 2022
[summary] 1. Fix close_all_tables_for_name() before the txn is commited. 2. In file sql_trunction.cc and function end_transaction(), will call CommitTx() twice, In CommitTx() skip for the first time, called in trans_commit_stmt(), thd->server_status = SERVER_STATUS_IN_TRANS and all = false then called in trans_commit_implicit(), thd->server_status will be set "~SERVER_STATUS_IN_TRANS", and all = true
This problom only exists in 8.0, 5.7 is ok. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Have you read the Contributing Guidelines on issues?
Please confirm if bug report does NOT exists already ?
Describe the problem
Execute
truncate table t
with no effect, the data didn't be truncated.Expected behavior
No response
How To Reproduce
talbe schema :
create table t2(a int key, b int) engine = tianmu;
insert into t2 values ....
Environment
Are you interested in submitting a PR to solve the problem?
The text was updated successfully, but these errors were encountered: