[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openldap-technical
Subject:    Counter concurrency access
From:       Pascal Jakobi <pascal.jakobi () gmail ! com>
Date:       2024-03-06 9:21:25
Message-ID: 779858db-03b4-2801-21c6-76e6408f9ac3 () gmail ! com
[Download RAW message or body]

Hi there

I am creating a program that needs to increment a counter. Typically a 
serial number has to be incremented every time I create a certificate.

The problem is to handle concurrent access. Fundamentally I need to 1/ 
read the counter 2/ increment it. Therefore no one must be provided 
access to the counter during these two operations.

Therefore I need to set a lock before the read operation and release it 
after the update. Is there a way to do this with OL ? I am conscious of 
the ldapmodify features thanks to Clement, however, this will not lock 
the read.

Thks in adv.

P

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic