guard RefreshPeer():sync() not to insert the same record twice.
authorBarış Metin <Talip-Baris.Metin@sophia.inria.fr>
Wed, 29 Apr 2009 14:39:04 +0000 (14:39 +0000)
committerBarış Metin <Talip-Baris.Metin@sophia.inria.fr>
Wed, 29 Apr 2009 14:39:04 +0000 (14:39 +0000)
commitf053ba034efef11d4435feebdc84c8022a9e76b5
tree0b31c6e91f22182c2e31eda2a5dba8ee48eefe92
parent9e94f25a98ef54e53fc828c9e1fdef2bc8f50dcc
guard RefreshPeer():sync() not to insert the same record twice.

The problem is sync() inserts duplicated records, but when we try to
insert into peer_* tables it fails for the second one. That creates
strange problems like federated objects appear as local objects.

We still need to find why sync is called with duplicated records but
this patch should prevent the db problems.
PLC/Methods/RefreshPeer.py