keith-turner commented on a change in pull request #973: fixes #768 fix race
condition in generation of table map
URL: https://github.com/apache/accumulo/pull/973#discussion_r259596763
##########
File path:
core/src/main/java/org/apache/accumulo/core/client/impl/TableMap.java
##########
@@ -98,4 +106,8 @@ public TableMap(Instance instance, ZooCache zooCache) {
public Map<String,String> getIdtoNameMap() {
return tableIdToNameMap;
}
+
+ public boolean isCurrent(ZooCache zc) {
+ return this.zooCache == zc && this.updateCount == zc.getUpdateCount();
+ }
Review comment:
In this case I wanted to make sure it was the exact same zoocache instance
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services