[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: compare uidNumber in LDAP



>You don't need the additional lock record.  The delete & add
>operation serves as your lock record.  If your delete & add
>succeeds, then you got the correct uidNumber.

Why doesn't this example apply?

> Process A reads uidNumber 500
> Process B reads uidNumber 500
> Process A deletes & adds uidNumber 501 before B continues
> Process B deletes & adds uidNumber 501

If A and B are independant clients, there's no guaruntees as to when
they start and complete each step.  The above example is feasable.
Neither A nor B fail on the delete, and yet, they issued duplicate numbers.

-y

~~~~~
The Moon is Waning Gibbous (84% of Full)