usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject incubator-usergrid git commit: Invalidate the migration info cache after resetting the version.
Date Tue, 04 Aug 2015 20:08:28 GMT
Repository: incubator-usergrid
Updated Branches:
  refs/heads/two-dot-o-dev 6b90b6639 -> ba5c49141


Invalidate the migration info cache after resetting the version.


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

Branch: refs/heads/two-dot-o-dev
Commit: ba5c4914167335c5b4ca292f6f1058eeb97934ee
Parents: 6b90b66
Author: Michael Russo <michaelarusso@gmail.com>
Authored: Tue Aug 4 11:53:13 2015 -0700
Committer: Michael Russo <michaelarusso@gmail.com>
Committed: Tue Aug 4 11:53:13 2015 -0700

----------------------------------------------------------------------
 .../persistence/core/migration/data/DataMigrationManagerImpl.java   | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/ba5c4914/stack/corepersistence/common/src/main/java/org/apache/usergrid/persistence/core/migration/data/DataMigrationManagerImpl.java
----------------------------------------------------------------------
diff --git a/stack/corepersistence/common/src/main/java/org/apache/usergrid/persistence/core/migration/data/DataMigrationManagerImpl.java
b/stack/corepersistence/common/src/main/java/org/apache/usergrid/persistence/core/migration/data/DataMigrationManagerImpl.java
index 714aa11..5d41abe 100644
--- a/stack/corepersistence/common/src/main/java/org/apache/usergrid/persistence/core/migration/data/DataMigrationManagerImpl.java
+++ b/stack/corepersistence/common/src/main/java/org/apache/usergrid/persistence/core/migration/data/DataMigrationManagerImpl.java
@@ -148,6 +148,7 @@ public class DataMigrationManagerImpl implements DataMigrationManager
{
         Preconditions.checkArgument( version >= 0, "You must specify a version of 0 or
greater" );
 
         migrationInfoSerialization.setVersion( pluginName, version );
+        migrationInfoCache.invalidateAll();
     }
 
 


Mime
View raw message