Mahesh Reddy has uploaded this change for review. ( http://gerrit.cloudera.org:8080/22229
Change subject: KUDU-613: Micro-optimization in Erase ...................................................................... KUDU-613: Micro-optimization in Erase Prior to this patch, the Erase function on the shard level did not have a return value. The Erase function on the ShardPair level called both shard-level functions. This patch changes the shard-level Erase function to return a bool to indicate whether or not an entry was erased. This allows the ShardPair level function to only call Erase on the protected shard when the probationary shard does not find and erase the approrpriate entry. Change-Id: I9941b671f00d5f4dd71b59a77b45f9cdbd79b367 --- M src/kudu/util/slru_cache.cc M src/kudu/util/slru_cache.h 2 files changed, 11 insertions(+), 4 deletions(-) git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/29/22229/1 -- To view, visit http://gerrit.cloudera.org:8080/22229 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I9941b671f00d5f4dd71b59a77b45f9cdbd79b367 Gerrit-Change-Number: 22229 Gerrit-PatchSet: 1 Gerrit-Owner: Mahesh Reddy <[email protected]>
