Merge lp:~stewart/drizzle/slap-remove-autocommit-in-load-bug668143 into lp:drizzle/7.0
Proposed by
Stewart Smith
Status: | Merged |
---|---|
Approved by: | Brian Aker |
Approved revision: | 1885 |
Merged at revision: | 1911 |
Proposed branch: | lp:~stewart/drizzle/slap-remove-autocommit-in-load-bug668143 |
Merge into: | lp:drizzle/7.0 |
Diff against target: |
59 lines (+0/-8) 3 files modified
client/drizzleslap.cc (+0/-4) plugin/haildb/tests/r/drizzleslap.result (+0/-2) tests/r/drizzleslap.result (+0/-2) |
To merge this branch: | bzr merge lp:~stewart/drizzle/slap-remove-autocommit-in-load-bug668143 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Brian Aker | Needs Fixing | ||
Lee Bieber (community) | Needs Fixing | ||
Review via email: mp+39598@code.launchpad.net |
Description of the change
At the end of the first iteration in drizzleslap, if commit_count is set, it will run SET AUTOCOMMIT=0. This means that the next load of data for the next iteration gets run in 1 transaction.
On top of this, it is a transaction that is NOT committed.
i.e. the second iteration will be running against no data.
this patch fixes that.
To post a comment you must log in.
Just looking at the patch, you only removed part of the feature, not the entire thing.
Looking at this, I think it might be better to just fix it to work, instead of pulling it out (which I know is counter to what I thought on IRC, but I hadn't looked at the code at that point).