On 8/30/12 4:05 PM, Øyvind Kolbu wrote:
On 2012-08-30 at 13:32, Daniel-Constantin Mierla
wrote:
Then, have in mind that there are several
operations, one after the other:
- update - which do update to all write db servers
- test affected rows (which is always working on last write (update)
connection)
- insert if affected rows is 0
So it is not an atomic operation, like
updated_and_if_affected_rows_is_0_then_insert. All this layer is done in
usrloc, in sequential steps, working fine for one server, but not for
multiple nodes.
After reading this mail and usrloc/ucontact.c I have a much better
idea of
how this works, thanks!
ok
I am not sure what it will take to implement this
kind of operation
inside the database drivers, then it may work. TBased on quick thoughts,
the code is there, just that has to be structured for each db connector
and exported via db api and propagated to db_cluster.
This would be great.
I
agree, the good part is that all is open source, so anyone can jump in
and contribute new features they need ;-)
Cheers,
Daniel
--
Daniel-Constantin Mierla -
http://www.asipto.com
http://twitter.com/#!/miconda -
http://www.linkedin.com/in/miconda
Kamailio Advanced Training, Berlin, Nov 5-8, 2012 -
http://asipto.com/u/kat