Always keep the oldest timestamp
The optimistic lock should be checked with the oldest timestamp to be safer. issue2687 review23561002
This commit is contained in:
1 parent
b07f9ee1cc
commit
aba3e13833
1 file changed
+3
-1
@@ -436,7 +436,9 @@ class Record(SignalEvent):
|
||||
later = {}
|
||||
for fieldname, value in val.iteritems():
|
||||
if fieldname == '_timestamp':
|
||||
self._timestamp = value
|
||||
# Always keep the older timestamp
|
||||
if not self._timestamp:
|
||||
self._timestamp = value
|
||||
continue
|
||||
if fieldname not in self.group.fields:
|
||||
if fieldname == 'rec_name':
|
||||
|
||||
Reference in new issue
Block a user