Atomic Operations?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello, a newbie here!

Doing some playing with Python and librados, and it is mostly easy to use, but I am confused about atomic operations. The documentation isn't clear to me, and Google isn't giving me obvious answers either...

I would like to do some locking. The data structures I am playing with in RADOS should work great if I don't accidentally fire up more than one instance of myself. So I would like to drop an attribute on a central object saying it's mine, all mine--but only if another copy of myself hasn't done so already.

Is there some sample code to show me the safe way to do this?

Thanks,

-kb, the Kent who is reluctant to just play around with locking to see what works...because it might look like it is working, yet still have a race susceptibility.

_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux