Re: Concurrent access of the object via Rados API...

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

 



On Tue, 17 Feb 2015, Dennis Chen wrote:
> Hello,
> 
> For the case of multiple clients(separate process) accessing an object
> in the cluster, is the exclusive protection of the shared object
> needed for the caller?
> 
> Process A::rados::ioctx.write(obj, ...)
> Process B::rados::ioctx.write(obj, ...)

This is correct.  Racing reads/writes get ordered when they arrive at the 
OSD, and we make sure that updates are atomic and durable despite any 
OSD/disk/network failures.

sage



> 
> or:
> 
> Process A::
>     mylock.lock();
>     ioctx.write(obj, ..)
>     mylock.unlock()
> 
> Process B::
>     mylock.lock();
>     ioctx.write(obj, ..)
>     mylock.unlock()
> 
> which one is correct?
> 
> -- 
> Den
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> 
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux