gora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lewi...@apache.org
Subject [34/50] [abbrv] git commit: Clear dirty states after successful put()
Date Wed, 04 Jun 2014 16:36:51 GMT
Clear dirty states after successful put()


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

Branch: refs/heads/master
Commit: ff4abfc7b668e6638b054b08dadf0abe0b105959
Parents: 7b6ce7f
Author: Damien Raude-Morvan <damien@dictanova.com>
Authored: Thu May 22 15:43:29 2014 +0200
Committer: Damien Raude-Morvan <damien@dictanova.com>
Committed: Thu May 22 15:45:00 2014 +0200

----------------------------------------------------------------------
 .../src/main/java/org/apache/gora/mongodb/store/MongoStore.java     | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/gora/blob/ff4abfc7/gora-mongodb/src/main/java/org/apache/gora/mongodb/store/MongoStore.java
----------------------------------------------------------------------
diff --git a/gora-mongodb/src/main/java/org/apache/gora/mongodb/store/MongoStore.java b/gora-mongodb/src/main/java/org/apache/gora/mongodb/store/MongoStore.java
index 6ff3b2c..2d07c05 100644
--- a/gora-mongodb/src/main/java/org/apache/gora/mongodb/store/MongoStore.java
+++ b/gora-mongodb/src/main/java/org/apache/gora/mongodb/store/MongoStore.java
@@ -416,6 +416,7 @@ public class MongoStore<K, T extends PersistentBase> extends
     // Execute the update (if there is at least one $set ot $unset
     if (!qUpdate.isEmpty()) {
       mongoClientColl.update(qSel, qUpdate, true, false);
+      obj.clearDirty();
     } else {
       LOG.debug("No update to perform, skip {}", key);
     }


Mime
View raw message