Committer: amyshkin
LJRU-2725: New comments systemU trunk/cgi-bin/LJ/PartnerSite.pm
Modified: trunk/cgi-bin/LJ/PartnerSite.pm =================================================================== --- trunk/cgi-bin/LJ/PartnerSite.pm 2011-11-23 15:42:57 UTC (rev 11205) +++ trunk/cgi-bin/LJ/PartnerSite.pm 2011-11-24 11:52:55 UTC (rev 11206) @@ -293,17 +293,17 @@ =item * -$partner->insert_mapping( $entry, $docid ): record that the given +$partner->replace_mapping( $entry, $docid ): record that the given entry corresponds to the given docid. =cut -sub insert_mapping { +sub replace_mapping { my ( $self, $entry, $docid ) = @_; my $dbh = LJ::get_db_writer(); $dbh->do( qq{ - INSERT IGNORE INTO external_sites_articles_map + REPLACE INTO external_sites_articles_map SET partnerid = ?, docid_hash = ?,