products/CPSUid

changeset 21:4c518c58ad6b

Add important comment
author gracinet
date Fri, 11 Aug 2006 12:40:30 +0000
parents 469391ff4449
children 139a1b80a74d
files uidcounter.py
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- a/uidcounter.py
     1.2 +++ b/uidcounter.py
     1.3 @@ -74,6 +74,12 @@
     1.4      security.declarePrivate('hit')
     1.5      def hit(self):
     1.6          """Hit the counter: return current counter and increment its value
     1.7 +
     1.8 +        XXXXXX GR. Currently the conflict resolving system breaks the
     1.9 +        counter unicity because two conflicting threads will get the same
    1.10 +        value and the transaction will be replayed.
    1.11 +        We should make an independent micro-transaction here with its own
    1.12 +        ZODB connection and implement a replay system like the publisher's.
    1.13          """
    1.14          # XXX AT: this is were conflict issues should be handled (?)
    1.15          counter_value = self.counter_current