[OpenSIPS-Devel] SF.net SVN: opensips:[8105] trunk/modules/usrloc
Stanisław Pitucha
viraptor at gmail.com
Thu Jun 30 19:48:30 CEST 2011
On 30 June 2011 17:25, Bogdan-Andrei Iancu <bogdan at opensips.org> wrote:
> Revision: 8105
> http://opensips.svn.sourceforge.net/opensips/?rev=8105&view=rev
> Author: bogdan_iancu
> Date: 2011-06-30 16:25:18 +0000 (Thu, 30 Jun 2011)
>
> Log Message:
> -----------
> - fixed race between UPDATE and DELETE when using DB_ONLY mode (one processe can update a record, while timer proc tries to delete it). The result is loosing contacts from database. The fix is to use REPLACE (if available on DB level) instead of UPDATE (as records may be missing).
> Based on an original idea from patch #2969454; Credits go to Stanislaw Pitucha
I think a bit too much stuff was stripped. Now the old db schema is
used without any control from the user.
That means there's no unique key to generate the conflict
(update/replace happens only on key collision) on insert and no way to
turn off the "atomic" updates from the config if you want the old
schema... Unless it's properly documented in the manual it might cause
some really bizarre situations for people using DB_ONLY.
--
KTHXBYE,
Stanisław Pitucha
More information about the Devel
mailing list