Alexey Serbin has posted comments on this change. ( http://gerrit.cloudera.org:8080/16526 )
Change subject: KUDU-2612 p5 (b): add highest_seen_txn_id into CoordinatorOpResultPB ...................................................................... Patch Set 3: (1 comment) http://gerrit.cloudera.org:8080/#/c/16526/3/src/kudu/transactions/txn_status_manager.cc File src/kudu/transactions/txn_status_manager.cc: http://gerrit.cloudera.org:8080/#/c/16526/3/src/kudu/transactions/txn_status_manager.cc@164 PS3, Line 164: // Always set the 'highest_seen_txn_id' on return. : SCOPED_CLEANUP({ : if (highest_seen_txn_id) { : std::lock_guard<simple_spinlock> l(lock_); : *highest_seen_txn_id = highest_txn_id_; : } : }); > Sounds good to me, would you mind adding more to the comment to explain the @awong: the issues with extra lock acquisition and posting back -2 and -1 magic number are addressed now @hao.hao: I added a blurb to explain to motivation behind all this fuss -- To view, visit http://gerrit.cloudera.org:8080/16526 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: Ifcb4d90bc10a5695c3f54229688ccdcaf56011d0 Gerrit-Change-Number: 16526 Gerrit-PatchSet: 3 Gerrit-Owner: Alexey Serbin <[email protected]> Gerrit-Reviewer: Alexey Serbin <[email protected]> Gerrit-Reviewer: Andrew Wong <[email protected]> Gerrit-Reviewer: Hao Hao <[email protected]> Gerrit-Reviewer: Kudu Jenkins (120) Gerrit-Reviewer: Tidy Bot (241) Gerrit-Comment-Date: Thu, 08 Oct 2020 00:16:22 +0000 Gerrit-HasComments: Yes
