<div dir="ltr">Maybe I misunderstood your approach then.<div><br></div><div>I though you were suggesting where a node performs an "UPDATE record WHERE record = last_state_node_saw" query and then checks the number of affected rows. That's optimistic locking by every definition I've heard of it. It matches the following statement from the wiki article you linked to as well:</div>
<div><br></div><div>"The latter situation (optimistic locking) is only appropriate when there is less chance of someone needing to access the record while it is locked; otherwise it cannot be certain that the update will succeed because the attempt to update the record will fail if another user updates the record first."</div>
<div><br></div><div>Did I misinterpret how your approach works?</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 30, 2014 at 11:07 AM, Jay Pipes <span dir="ltr"><<a href="mailto:jaypipes@gmail.com" target="_blank">jaypipes@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On 07/30/2014 10:53 AM, Kevin Benton wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Using the UPDATE WHERE statement you described is referred to as<br>
optimistic locking. [1]<br>
<br>
<a href="https://docs.jboss.org/jbossas/docs/Server_Configuration_Guide/4/html/The_CMP_Engine-Optimistic_Locking.html" target="_blank">https://docs.jboss.org/<u></u>jbossas/docs/Server_<u></u>Configuration_Guide/4/html/<u></u>The_CMP_Engine-Optimistic_<u></u>Locking.html</a><br>
</blockquote>
<br></div>
SQL != JBoss.<br>
<br>
It's not optimistic locking in the database world. In the database world, optimistic locking is an entirely separate animal:<br>
<br>
<a href="http://en.wikipedia.org/wiki/Lock_(database)" target="_blank">http://en.wikipedia.org/wiki/<u></u>Lock_(database)</a><br>
<br>
And what I am describing is not optimistic lock concurrency in databases.<span class="HOEnZb"><font color="#888888"><br>
<br>
-jay</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
______________________________<u></u>_________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">OpenStack-dev@lists.openstack.<u></u>org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/<u></u>cgi-bin/mailman/listinfo/<u></u>openstack-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Kevin Benton</div>
</div>