jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcel Reutegger" <marcel.reuteg...@gmx.net>
Subject Re: Isolation level inconsistency.
Date Tue, 24 Jul 2007 06:56:11 GMT
> changing node A makes it A', remember it's different now from the node
> A
> that is persisted because you haven't saved it yet! So to change your
> example:
> If query return persistent state only you will see a bit different
> behavior.
>    1) query repo for node with property P=steve
>    2) got node A with property P=steve
>    3) set node A property P=john (making it transient, resulting in node
> A')
>    4) query repository for node with property P=john
>    5) got nothing
>    6) query repo for node with property P=steve
>    7) got node A (the original from the store because A' is still
> transient)
> with property P=steve
> And what Marcel was trying to say was:
>    8) set node A property Q=test (making it transient, resulting in node
> A''
> because it's not the same as the one in the store and also different from
> A'? Or does something else happen?)
>    9) What happens when we call save() or refresh() on A' or A''?
> At least that's what I think he was trying to say :-)

that's exactly what I meant. Thanks for the clarification.

Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kanns mit allen: http://www.gmx.net/de/go/multimessenger

View raw message