On 8/9/07, <b class="gmail_sendername">Frederik Ramm</b> <<a href="mailto:frederik@remote.org">frederik@remote.org</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>> Note that the above scenario is fragile especially because there<br>> is always the possibility for a 3th commit between you resolving the<br>> conflicts and committing.<br><br>This could be avoided by sending the version number your edit is
<br>based on to the server which would then only accept your edit if that<br>version is still current, and reject it otherwise. (DB people have a<br>term for this but I forgot... lazy locking or something?)</blockquote><div>
<br>It's called optimistic locking.  <br><br>It's the responsibility of the server to enforce it - expecting the clients to do it is not a winning strategy.<br><br> </div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Bye<br>Frederik<br><br>--<br>Frederik Ramm  ##  eMail <a href="mailto:frederik@remote.org">frederik@remote.org</a>  ##  N49°00.09' E008°23.33'<br><br><br><br>_______________________________________________<br>dev mailing list
<br><a href="mailto:dev@openstreetmap.org">dev@openstreetmap.org</a><br><a href="http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev">http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev</a><br></blockquote>
</div><br>