incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cr...@apache.org
Subject [34/45] git commit: Another for the table descriptor and the table context.
Date Sun, 26 Oct 2014 17:55:32 GMT
Another for the table descriptor and the table context.


Project: http://git-wip-us.apache.org/repos/asf/incubator-blur/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-blur/commit/ff227c33
Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/ff227c33
Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/ff227c33

Branch: refs/heads/blur-384-random-port-cleanup
Commit: ff227c33e32297cfcd4eead879e477520b102fc8
Parents: 08461e9
Author: Aaron McCurry <amccurry@gmail.com>
Authored: Wed Oct 15 09:08:59 2014 -0400
Committer: Aaron McCurry <amccurry@gmail.com>
Committed: Wed Oct 15 09:08:59 2014 -0400

----------------------------------------------------------------------
 blur-core/src/main/java/org/apache/blur/server/TableContext.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/ff227c33/blur-core/src/main/java/org/apache/blur/server/TableContext.java
----------------------------------------------------------------------
diff --git a/blur-core/src/main/java/org/apache/blur/server/TableContext.java b/blur-core/src/main/java/org/apache/blur/server/TableContext.java
index 2eb8631..da5e237 100644
--- a/blur-core/src/main/java/org/apache/blur/server/TableContext.java
+++ b/blur-core/src/main/java/org/apache/blur/server/TableContext.java
@@ -123,9 +123,10 @@ public class TableContext implements Cloneable {
     }
     TableContext tableContext = _cache.get(name);
     if (tableContext != null) {
-      TableDescriptor newTd = new TableDescriptor(tableDescriptor);
       TableContext clone = tableContext.clone();
+      TableDescriptor newTd = new TableDescriptor(clone._descriptor);
       clone._descriptor = newTd;
+      clone._descriptor.setEnabled(tableDescriptor.isEnabled());
       return clone;
     }
     LOG.info("Creating table context for table [{0}]", name);


Mime
View raw message