accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From els...@apache.org
Subject git commit: ACCUMULO-2331 Actually invalidate the cache when requested.
Date Thu, 06 Feb 2014 04:09:10 GMT
Updated Branches:
  refs/heads/2331-tableconfig [created] 07384da27


ACCUMULO-2331 Actually invalidate the cache when requested.


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/07384da2
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/07384da2
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/07384da2

Branch: refs/heads/2331-tableconfig
Commit: 07384da27a9997824f56230d30a52fd17e0aef39
Parents: 5eb19c6
Author: Josh Elser <elserj@apache.org>
Authored: Wed Feb 5 23:07:34 2014 -0500
Committer: Josh Elser <elserj@apache.org>
Committed: Wed Feb 5 23:07:34 2014 -0500

----------------------------------------------------------------------
 .../apache/accumulo/server/conf/TableConfiguration.java  | 11 +++++++++++
 1 file changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/07384da2/server/src/main/java/org/apache/accumulo/server/conf/TableConfiguration.java
----------------------------------------------------------------------
diff --git a/server/src/main/java/org/apache/accumulo/server/conf/TableConfiguration.java
b/server/src/main/java/org/apache/accumulo/server/conf/TableConfiguration.java
index c5b6c18..2c144d1 100644
--- a/server/src/main/java/org/apache/accumulo/server/conf/TableConfiguration.java
+++ b/server/src/main/java/org/apache/accumulo/server/conf/TableConfiguration.java
@@ -147,4 +147,15 @@ public class TableConfiguration extends AccumuloConfiguration {
   public String getTableId() {
     return table;
   }
+
+  @Override
+  public void invalidateCache() {
+    if (null != tablePropCache) {
+      synchronized (TableConfiguration.class) {
+        if (null != tablePropCache) {
+          tablePropCache = null;
+        }
+      }
+    }
+  }
 }


Mime
View raw message