Skip to content

Commit 712cd35

Browse files
committed
Remove marking LAST_UPDATED dirty since it is now resolved via snapshot check
1 parent 0b7089f commit 712cd35

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

grails-data-mongodb/core/src/main/groovy/org/grails/datastore/mapping/mongo/engine/codecs/PersistentEntityCodec.groovy

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ import org.grails.datastore.mapping.engine.internal.MappingUtils
6464
import org.grails.datastore.mapping.model.EmbeddedPersistentEntity
6565
import org.grails.datastore.mapping.model.PersistentEntity
6666
import org.grails.datastore.mapping.model.PersistentProperty
67-
import org.grails.datastore.mapping.model.config.GormProperties
6867
import org.grails.datastore.mapping.model.types.Association
6968
import org.grails.datastore.mapping.model.types.Embedded
7069
import org.grails.datastore.mapping.model.types.EmbeddedCollection
@@ -249,12 +248,6 @@ class PersistentEntityCodec extends BsonPersistentEntityCodec {
249248
}
250249

251250
}
252-
else {
253-
// schedule lastUpdated if necessary
254-
if (entity.getPropertyByName(GormProperties.LAST_UPDATED) != null) {
255-
dirtyProperties.add(GormProperties.LAST_UPDATED)
256-
}
257-
}
258251

259252
for (propertyName in dirtyProperties) {
260253
def prop = entity.getPropertyByName(propertyName)

0 commit comments

Comments
 (0)