LevelDB storage engine
(MDEV-3841)
|
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Technical task | Priority: | Minor |
| Reporter: | Elena Stepanova | Assignee: | Sergei Petrunia |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | leveldb | ||
| Issue Links: |
|
||||
| Description |
|
One connection starts a slow update, another connection kills the query in the first connection, the query ends with an error, but the changes are still applied. Test output:
Test case:
|
| Comments |
| Comment by Sergei Petrunia [ 2013-01-17 ] |
|
SQL layer will call leveldb_rollback (hton=0x196c330, thd=0x7508e30, rollback_trx=false) which will do nothing, because we assume this is a statement failed (true) inside a transaction (false). I don't see any way a storage engine could tell between a single-statement transaction and a statement inside a bigger transaction. |
| Comment by Sergei Petrunia [ 2013-01-17 ] |
|
The difference will not matter as much when we're able to roll back a statement which is inside a transaction. |
| Comment by Elena Stepanova [ 2013-02-06 ] |
|
Reproducible on |
| Comment by Sergei Petrunia [ 2013-05-02 ] |
|
Added a testcase |