HBASE-14995 Optimize setting tagsPresent in DefaultMemStore.java (huaxiang sun)
This commit is contained in:
parent
3dec8582f5
commit
546ac1cbb3
|
@ -240,7 +240,7 @@ public class DefaultMemStore implements MemStore {
|
||||||
// When we use ACL CP or Visibility CP which deals with Tags during
|
// When we use ACL CP or Visibility CP which deals with Tags during
|
||||||
// mutation, the TagRewriteCell.getTagsLength() is a cheaper call. We do not
|
// mutation, the TagRewriteCell.getTagsLength() is a cheaper call. We do not
|
||||||
// parse the byte[] to identify the tags length.
|
// parse the byte[] to identify the tags length.
|
||||||
if(e.getTagsLength() > 0) {
|
if (!tagsPresent && (e.getTagsLength() > 0)) {
|
||||||
tagsPresent = true;
|
tagsPresent = true;
|
||||||
}
|
}
|
||||||
setOldestEditTimeToNow();
|
setOldestEditTimeToNow();
|
||||||
|
|
Loading…
Reference in New Issue