Have User::createNew() load the object from master
authorBrad Jorsch <bjorsch@wikimedia.org>
Fri, 23 Feb 2018 18:24:47 +0000 (13:24 -0500)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 23 Feb 2018 23:44:19 +0000 (15:44 -0800)
commit61b0c1930626a1088f012bf582262330f903f74a
treeff039869aa990368976292461ced44f67f3dfacb
parent1964f24bb466fa0c8c30d075a1e7ef94a84593f9
Have User::createNew() load the object from master

When the new User is created, it's leaving it to be lazy-loaded from a
replica. That seems to be causing attempts to add groups immediately
after creation to fail because the load-from-replica doesn't find the
just-created master row.

Bug: T188014
Change-Id: I841c434086bfaaca1cf1ce23673f32dc5a77915d
includes/user/User.php