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

Christine Caulfield ccaulfie at redhat.com
Tue Sep 2 00:19:43 PDT 2008


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: confdb_inc.patch
Type: text/x-patch
Size: 15917 bytes
Desc: not available
Url : http://lists.linux-foundation.org/pipermail/openais/attachments/20080902/5d5de31d/attachment-0001.bin 


More information about the Openais mailing list