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

fix transaction with dropBufferSupport:true #314

Merged
merged 3 commits into from
Jun 1, 2016
Merged

fix transaction with dropBufferSupport:true #314

merged 3 commits into from
Jun 1, 2016

Conversation

shaharmor
Copy link
Collaborator

@shaharmor shaharmor commented May 31, 2016

fixes #313 + regression test.

@luin There is another issue now with dropBufferSupport regarding transactions that combine both Buffer & non-Buffer methods.
I'm not sure this is supported now and will cause an error.

Pipeline.prototype.exec = function (callback) {
if (this._transactions > 0) {
this._transactions -= 1;
return execBuffer.apply(this, arguments);
return exec.apply(this, arguments);
Copy link
Collaborator

Choose a reason for hiding this comment

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

return (this.options.dropBufferSupport ? exec : execBuffer).apply(this, arguments); should fix the tests in "test/functional/transaction.js"

@luin luin merged commit 47a2d9a into master Jun 1, 2016
@luin luin deleted the fix-exec-buffer branch June 1, 2016 01:09
@luin
Copy link
Collaborator

luin commented Jun 1, 2016

Released in v2.0.1. 😆

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unhandled rejection Error with multi/exec
2 participants