Skip to content

Get batch arg, when looking for EndTransaction, just look at the last entry#3192

Closed
veteranlu wants to merge 1 commit intocockroachdb:masterfrom
veteranlu:veteran
Closed

Get batch arg, when looking for EndTransaction, just look at the last entry#3192
veteranlu wants to merge 1 commit intocockroachdb:masterfrom
veteranlu:veteran

Conversation

@veteranlu
Copy link
Copy Markdown
Contributor

Just finished @tschottdorf 's TODO, simple logic, therefore, don't add any test case.

Review on Reviewable

@veteranlu veteranlu force-pushed the veteran branch 3 times, most recently from 0c9e102 to f84231f Compare November 23, 2015 09:00
roachpb/batch.go Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

comment needs an update since it'll look for the "last" EndTransaction (there should only ever be at most one and if so at that position, but still).

@veteranlu
Copy link
Copy Markdown
Contributor Author

@tamird u r right, I add some test case to make sure the correct logic.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

GetArg returns a request of the given type if one is contained in the Batch..

@tbg
Copy link
Copy Markdown
Member

tbg commented Nov 30, 2015

Some minor comments but then LGTM. Sorry we let this sit for a couple of days.

@tbg tbg closed this in #3375 Dec 14, 2015
tbg added a commit that referenced this pull request Dec 14, 2015
cleanup #3192: small tweak for batch.GetArg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants