usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject [03/50] [abbrv] git commit: Fixes issue with setup not creating indexes correctly
Date Mon, 20 Oct 2014 13:46:31 GMT
Fixes issue with setup not creating indexes correctly


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

Branch: refs/heads/two-dot-o-events
Commit: dbdba300d9f690cfa6fd7738bc58955488b177ba
Parents: d52ad4c
Author: Todd Nine <toddnine@apache.org>
Authored: Wed Oct 15 22:28:48 2014 -0600
Committer: Todd Nine <toddnine@apache.org>
Committed: Wed Oct 15 22:28:48 2014 -0600

----------------------------------------------------------------------
 .../main/java/org/apache/usergrid/corepersistence/CpSetup.java    | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/dbdba300/stack/core/src/main/java/org/apache/usergrid/corepersistence/CpSetup.java
----------------------------------------------------------------------
diff --git a/stack/core/src/main/java/org/apache/usergrid/corepersistence/CpSetup.java b/stack/core/src/main/java/org/apache/usergrid/corepersistence/CpSetup.java
index 9063775..c1bab12 100644
--- a/stack/core/src/main/java/org/apache/usergrid/corepersistence/CpSetup.java
+++ b/stack/core/src/main/java/org/apache/usergrid/corepersistence/CpSetup.java
@@ -156,6 +156,9 @@ public class CpSetup implements Setup {
 
         setupStaticKeyspace();
 
+        //force the EMF creation of indexes before creating the default applications
+        emf.refreshIndex();
+
         createDefaultApplications();
     }
 


Mime
View raw message