You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by sf...@apache.org on 2015/02/27 21:06:18 UTC
incubator-usergrid git commit: 432: fix deleteasync
Repository: incubator-usergrid
Updated Branches:
refs/heads/USERGRID-432 6273969d1 -> e212c6842
432: fix deleteasync
Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/e212c684
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/e212c684
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/e212c684
Branch: refs/heads/USERGRID-432
Commit: e212c6842ee1cdb912a44462902bb04d21c3ae84
Parents: 6273969
Author: Shawn Feldman <sf...@apache.org>
Authored: Fri Feb 27 13:06:00 2015 -0700
Committer: Shawn Feldman <sf...@apache.org>
Committed: Fri Feb 27 13:06:00 2015 -0700
----------------------------------------------------------------------
.../apache/usergrid/corepersistence/CpEntityManagerFactory.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/e212c684/stack/core/src/main/java/org/apache/usergrid/corepersistence/CpEntityManagerFactory.java
----------------------------------------------------------------------
diff --git a/stack/core/src/main/java/org/apache/usergrid/corepersistence/CpEntityManagerFactory.java b/stack/core/src/main/java/org/apache/usergrid/corepersistence/CpEntityManagerFactory.java
index a609ea6..8272d7d 100644
--- a/stack/core/src/main/java/org/apache/usergrid/corepersistence/CpEntityManagerFactory.java
+++ b/stack/core/src/main/java/org/apache/usergrid/corepersistence/CpEntityManagerFactory.java
@@ -319,11 +319,10 @@ public class CpEntityManagerFactory implements EntityManagerFactory, Application
Entity appToDelete = results.getEntity();
if(appToDelete != null) {
em.delete(appToDelete);
-
// create new Entity in deleted_appinfos collection, with same UUID and properties as deleted appinfo
em.create("deleted_appinfo", appToDelete.getProperties());
+ em.refreshIndex();
}
- em.refreshIndex();
// delete the application's index
EntityIndex ei = managerCache.getEntityIndex(new ApplicationScopeImpl(