Re: librados: how to get notified when a certain object is created

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

 



On 2016-02-23 20:48, Gregory Farnum wrote:
On Saturday, February 20, 2016, Sorin Manolache <sorinm@xxxxxxxxx
<mailto:sorinm@xxxxxxxxx>> wrote:

    Hello,

    I can set a watch on an object in librados. Does this object have to
    exist already at the moment I'm setting the watch on it? What
    happens if the object does not exist? Is my watcher valid? Will I
    get notified when someone else creates the missing object that I'm
    watching and sends a notification?


I believe a watch implicitly creates the object, but you could run it on
a non-existent object and check. ;) but...

I hadn't tried that when I asked the question as I was still down at the learning curve of librados. I've tried it in the meantime and rados_watch returns ENOENT if the object does not exist.

Sorin
_______________________________________________
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]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux