You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by sn...@apache.org on 2014/09/26 18:42:03 UTC

git commit: Updating the IndexTool to work with two-dot-o and Core Persistence.

Repository: incubator-usergrid
Updated Branches:
  refs/heads/two-dot-o 261d9e850 -> 4cba3b830


Updating the IndexTool to work with two-dot-o and Core Persistence.


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

Branch: refs/heads/two-dot-o
Commit: 4cba3b830317d40ccdc00b65afde66a413d4dcd9
Parents: 261d9e8
Author: Dave Johnson <dm...@apigee.com>
Authored: Fri Sep 26 12:41:49 2014 -0400
Committer: Dave Johnson <dm...@apigee.com>
Committed: Fri Sep 26 12:41:49 2014 -0400

----------------------------------------------------------------------
 .../main/java/org/apache/usergrid/tools/IndexRebuild.java    | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/4cba3b83/stack/tools/src/main/java/org/apache/usergrid/tools/IndexRebuild.java
----------------------------------------------------------------------
diff --git a/stack/tools/src/main/java/org/apache/usergrid/tools/IndexRebuild.java b/stack/tools/src/main/java/org/apache/usergrid/tools/IndexRebuild.java
index 40aa0a2..e3d6560 100644
--- a/stack/tools/src/main/java/org/apache/usergrid/tools/IndexRebuild.java
+++ b/stack/tools/src/main/java/org/apache/usergrid/tools/IndexRebuild.java
@@ -106,7 +106,7 @@ public class IndexRebuild extends ToolBase {
             Set<String> collections = getCollections( line, appId );
 
             for ( String collection : collections ) {
-                reindex( appId, collection );
+                emf.rebuildCollectionIndex(appId, collection);
                 emf.refreshIndex();
             }
         }
@@ -155,10 +155,4 @@ public class IndexRebuild extends ToolBase {
 
         return em.getApplicationCollections();
     }
-
-
-    /** The application id. The collection name. */
-    private void reindex( UUID appId, String collectionName ) throws Exception {
-        emf.rebuildCollectionIndex(appId, collectionName);
-    }
 }