HomePhabricator

Fix removing references by using right PK, only right indexes

Description

Fix removing references by using right PK, only right indexes

  • Only include ref_src_wiki in the primary key if the global says it's fully backfilled.
  • Only use the right indexes (either the full ones if the backfill is done, or the old ones otherwise). Trying to use the new indexes when $wgFlowMigrateReferenceWiki is true causes problems, since we don't pass in ref_src_wiki when removing references, but that is what the new ones are indexed on.

Bug: T107204
Bug: T110390
Change-Id: I2da8def96e5dc9d0846533e55303a96ad76c2672

Details