In get and put inside HRegion we call that line

Integer lid = getLock(lockid, row);

Even if you don't provide a row lock, it will create one for you and
do the locking stuff. That happens before everything else, so is it
fair to say that row reads are atomic?

J-D

On Tue, Jan 26, 2010 at 1:42 AM, Bruno Dumon <[email protected]> wrote:
> Hi,
>
> At various places I have read that row writes are atomic.
>
> However, from a curious look at the code of the put method in
> HRegion.java, it seems like the updates of a put operation are written
> to the WAL only for one column family at a time. Is this understanding
> correct, so would it be more correct to say that the writes are
> actually atomic per column family within a row?
>
> On a related note, it would be nice if one could do both put and
> delete operations on one row in an atomic manner.
>
> Thanks,
>
> Bruno
>
> --
> Bruno Dumon
> Outerthought
> http://outerthought.org/
>

Reply via email to