HBASE-14995 Optimize setting tagsPresent in DefaultMemStore.java (huaxiang sun)

This commit is contained in:
tedyu 2015-12-16 18:16:38 -08:00
parent 3dec8582f5
commit 546ac1cbb3
1 changed files with 1 additions and 1 deletions

View File

@ -240,7 +240,7 @@ public class DefaultMemStore implements MemStore {
// When we use ACL CP or Visibility CP which deals with Tags during
// mutation, the TagRewriteCell.getTagsLength() is a cheaper call. We do not
// parse the byte[] to identify the tags length.
if(e.getTagsLength() > 0) {
if (!tagsPresent && (e.getTagsLength() > 0)) {
tagsPresent = true;
}
setOldestEditTimeToNow();