Actions
Bug #542
closedDuplicate entries in xml_replication table
Start date:
07/01/2002
Due date:
% Done:
0%
Estimated time:
Bugzilla-Id:
542
Description
During replication, when a hub replicate more than one documents to metacat B.
If the documents' home server is C which is not in B's xml_replication table,
server C will be added to B's xml_replication table. But when this done, it
will server two or three Cs in B's talbe.
I think this this becuase mutithread problem. We need to synchronize the
insert method.
Updated by Jing Tao over 22 years ago
In DocumentImpl class, there is a method name insertServerIntoReplication
table. In that method, we will check a server if it is in the table and its
name equals local host. If not then insert it. This method was declared as
synchronized and static. So only one object of this class can access this
method.
Testing results showsed that it get rid of this bug.
Actions