[Openais] [PATCH] add key_increment/ decrement calls to confdb

Christine Caulfield ccaulfie at redhat.com
Wed Sep 3 00:58:33 PDT 2008


Committed revision 1662.

Christine Caulfield wrote:
> This patch adds key_increment and key_decrement calls to the objdb and
> confdb subsystems.
> 
> This is useful to provide atomic counters (ag handle numbers) for
> long-running (though not persistent) connections. It's not currently
> possible via confdb to atomically get a new number from objdb due to the
> lack of locking. Doing it via increment operations in the IPC thread
> provides enough atomicity to make it useful. Fabio has already
> identified a use for these calls.
> 
> It could also provide some form of basic co-operative locking mechanism
> for IPC-using processes (not direct objdb calls).
> 
>

-- 

Chrissie


More information about the Openais mailing list