Hao Hao has uploaded a new change for review. http://gerrit.cloudera.org:8080/7796
Change subject: log block manager: use unsigned int for next_block_id_ ...................................................................... log block manager: use unsigned int for next_block_id_ next_block_id_ is used to keep track of which unique block id should be used for block creation. Currently, it is defined as int64_t. However, it could be updated based on the value of 'max_block_id' which is uint64_t. This patch changes the type of next_block_id_ to uint64_t to avoid overflow due to conversation of unsinged int to int, which can result in block id reused. Change-Id: Ib315b20719ef529331304df5c56c4242902524d4 --- M src/kudu/fs/log_block_manager.h 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/96/7796/1 -- To view, visit http://gerrit.cloudera.org:8080/7796 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ib315b20719ef529331304df5c56c4242902524d4 Gerrit-PatchSet: 1 Gerrit-Project: kudu Gerrit-Branch: master Gerrit-Owner: Hao Hao <[email protected]>
