Adar Dembo has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/13412 )

Change subject: KUDU-2826: Add tail for mutation list to accelerate update in 
memrowset
......................................................................


Patch Set 4:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/13412/3/src/kudu/tablet/mutation.cc
File src/kudu/tablet/mutation.cc:

http://gerrit.cloudera.org:8080/#/c/13412/3/src/kudu/tablet/mutation.cc@54
PS3, Line 54: void Mutation::AppendToListAtomic(Mutation** redo_head, 
Mutation** redo_tail) {
> // Append this mutation to the list at the given pointer.
Yeah that's pretty good. I'd make a few small changes:

// Appends this mutation to the list given by 'redo_head' and 'redo_tail'.
//
// This function is atomic provided that callers are externally synchronized on 
a
// per mutation list (i.e. per row) basis. Without this synchronization, the 
lack of
// atomicity between updates to 'redo_head' and 'redo_tail' may cause errors.
//
// This operation uses "Release" memory semantics (see atomicops.h).
// The pointers as well as all of the mutations in the list must be 
word-aligned.



--
To view, visit http://gerrit.cloudera.org:8080/13412
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I945f332f8241ecb3cc6ab66e67ee3ee2b4e49be8
Gerrit-Change-Number: 13412
Gerrit-PatchSet: 4
Gerrit-Owner: ZhangYao <[email protected]>
Gerrit-Reviewer: Adar Dembo <[email protected]>
Gerrit-Reviewer: Andrew Wong <[email protected]>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Todd Lipcon <[email protected]>
Gerrit-Reviewer: Yao Xu <[email protected]>
Gerrit-Reviewer: ZhangYao <[email protected]>
Gerrit-Comment-Date: Wed, 29 May 2019 16:24:01 +0000
Gerrit-HasComments: Yes

Reply via email to