gora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djkevi...@apache.org
Subject [2/3] gora git commit: Update dirty bit clearing after fetching from data store
Date Tue, 22 Aug 2017 04:15:44 GMT
Update dirty bit clearing after fetching from data store


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

Branch: refs/heads/master
Commit: 18c6426d1fbb60f0a52a5a7a021690f62d821955
Parents: bebc7a8
Author: nishadi <ndimeshi@gmail.com>
Authored: Sun Aug 20 20:45:19 2017 +0530
Committer: nishadi <ndimeshi@gmail.com>
Committed: Sun Aug 20 20:45:19 2017 +0530

----------------------------------------------------------------------
 .../main/java/org/apache/gora/aerospike/store/AerospikeStore.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/gora/blob/18c6426d/gora-aerospike/src/main/java/org/apache/gora/aerospike/store/AerospikeStore.java
----------------------------------------------------------------------
diff --git a/gora-aerospike/src/main/java/org/apache/gora/aerospike/store/AerospikeStore.java
b/gora-aerospike/src/main/java/org/apache/gora/aerospike/store/AerospikeStore.java
index 4ff1a53..677302d 100644
--- a/gora-aerospike/src/main/java/org/apache/gora/aerospike/store/AerospikeStore.java
+++ b/gora-aerospike/src/main/java/org/apache/gora/aerospike/store/AerospikeStore.java
@@ -454,6 +454,7 @@ public class AerospikeStore<K, T extends PersistentBase> extends
DataStoreBase<K
     for (String field : fields) {
       setPersistentField(field, record, persistent);
     }
+    persistent.clearDirty();
     return persistent;
   }
 
@@ -481,7 +482,6 @@ public class AerospikeStore<K, T extends PersistentBase> extends
DataStoreBase<K
 
     persistent.put(fieldName,
             getDeserializedObject(binValue, binDataType, fieldMap.get(fieldName).schema()));
-    persistent.setDirty(fieldMap.get(fieldName).pos());
   }
 
   /**


Mime
View raw message