You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@zookeeper.apache.org by GitBox <gi...@apache.org> on 2020/01/13 23:05:53 UTC
[GitHub] [zookeeper] ericlee123 commented on a change in pull request #1144:
ZOOKEEPER-3614: Limiting the number of ephemeral nodes per session
ericlee123 commented on a change in pull request #1144: ZOOKEEPER-3614: Limiting the number of ephemeral nodes per session
URL: https://github.com/apache/zookeeper/pull/1144#discussion_r366076505
##########
File path: zookeeper-server/src/main/java/org/apache/zookeeper/server/PrepRequestProcessor.java
##########
@@ -182,6 +192,13 @@ protected void addChangeRecord(ChangeRecord c) {
}
}
+ protected void decrementEphemeralCount(ChangeRecord record) {
+ if (ephemeralCount.containsKey(record.stat.getEphemeralOwner())) {
Review comment:
Good suggestion. Wasn't aware of `compute()`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services