Last modified: 2013-08-22 21:47:44 UTC
Env: Primary database: wikidb Shared database: shareddb Shared table: page ForeignDBRepo database: filedb Issue: In ForeignDBRepo, it sends a query: SELECT page_id FROM `shareddb`.`page` WHERE page_namespace = '6' AND page_title = 'filename' LIMIT 1 Expected: SELECT page_id FROM `filedb`.`page` WHERE page_namespace = '6' AND page_title = 'filename' LIMIT 1
Related URL: https://gerrit.wikimedia.org/r/65489 (Gerrit Change I45db6860d0a4b4480e0b93aa7e750f096424e40f)
Also in LoadBalancer::openForeignConnection()
Change 65489 merged by jenkins-bot: Never prefix table names with $wgSharedDB when used in foreign DB https://gerrit.wikimedia.org/r/65489
Marking as resolved fix since patch merged.