diff --git a/hazelcast/src/main/java/com/hazelcast/map/tx/TxnSetOperation.java b/hazelcast/src/main/java/com/hazelcast/map/tx/TxnSetOperation.java
index <HASH>..<HASH> 100644
--- a/hazelcast/src/main/java/com/hazelcast/map/tx/TxnSetOperation.java
+++ b/hazelcast/src/main/java/com/hazelcast/map/tx/TxnSetOperation.java
@@ -64,8 +64,8 @@ public class TxnSetOperation extends BasePutOperation implements MapTxnOperation
         if (record == null || version == record.getVersion()){
             recordStore.set(dataKey, dataValue, ttl);
             shouldBackup = true;
+            eventType = (record == null ? EntryEventType.ADDED : EntryEventType.UPDATED);
         }
-        eventType = (record == null ? EntryEventType.ADDED : EntryEventType.UPDATED);
     }
 
     public long getVersion() {
fire update event after updates in txn. fix