Duplicate entries in xml_replication table
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
#1 Updated by Jing Tao almost 18 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
Testing results showsed that it get rid of this bug.