Adar Dembo has posted comments on this change. ( http://gerrit.cloudera.org:8080/12121 )
Change subject: [fs]: wrapping up containers in scoped_refptr ...................................................................... Patch Set 4: (1 comment) http://gerrit.cloudera.org:8080/#/c/12121/4/src/kudu/fs/log_block_manager.cc File src/kudu/fs/log_block_manager.cc: http://gerrit.cloudera.org:8080/#/c/12121/4/src/kudu/fs/log_block_manager.cc@1274 PS4, Line 1274: Unretained(container), > No. IIUC, "bind.h Line 209" says that the P1 will be AddRef() inside. Yeah but isn't that only if 'container' is NOT passed via Unretained()? That's what I was implying: that you may need to drop the Unretained() wrapper so you'll get proper ref counting behavior. You'll probably need to modify the signature of ContainerDeletionAsync too (to accept a scoped_refptr<LogBlockContainer>). See https://github.com/apache/kudu/blob/master/src/kudu/gutil/callback.h#L206 for more details. -- To view, visit http://gerrit.cloudera.org:8080/12121 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I3c5c620014782b3d57dcbe047d0df73c949590c7 Gerrit-Change-Number: 12121 Gerrit-PatchSet: 4 Gerrit-Owner: helifu <[email protected]> Gerrit-Reviewer: Adar Dembo <[email protected]> Gerrit-Reviewer: Kudu Jenkins (120) Gerrit-Reviewer: Tidy Bot (241) Gerrit-Reviewer: helifu <[email protected]> Gerrit-Comment-Date: Sat, 05 Jan 2019 02:05:22 +0000 Gerrit-HasComments: Yes
