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

Steven Dake sdake at redhat.com
Tue Sep 2 11:51:51 PDT 2008


good for commit

regards
-steve
On Tue, 2008-09-02 at 08:19 +0100, 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
> _______________________________________________
> Openais mailing list
> Openais at lists.linux-foundation.org
> https://lists.linux-foundation.org/mailman/listinfo/openais



More information about the Openais mailing list