diff options
author | Amir Sarabadani <ladsgroup@gmail.com> | 2025-01-08 00:11:05 +0100 |
---|---|---|
committer | Jforrester <jforrester@wikimedia.org> | 2025-01-08 14:39:35 +0000 |
commit | 766a5b323df86b0d1761ced6e3788678058ea588 (patch) | |
tree | 2e763e0bf673c3e63f5127a98ebc8f69357e9a83 /tests/phpunit/unit/includes/Rest/Module/SpecBasedModuleTest.php | |
parent | 7e2f00c1b10bcd167b69d04505691e75cf590e62 (diff) | |
download | mediawikicore-766a5b323df86b0d1761ced6e3788678058ea588.tar.gz mediawikicore-766a5b323df86b0d1761ced6e3788678058ea588.zip |
file: Acquire the file id in all cases
This used to be called getFileIdFromName() because acquire…() was called
a couple lines above, except that the line is not called for new uploads
(only for re-uploads). This caused new files have their first revision
holding fr_file as zero in the beta cluster (end of the world, I know).
The overhead of acquire even if the row exists is negligible (it calls
get first and if it doesn't exist, it inserts it) so let's just call
it.
Bug: T383093
Change-Id: I47fee73b4510b7aa1858c5c607bb626ec7032645
Diffstat (limited to 'tests/phpunit/unit/includes/Rest/Module/SpecBasedModuleTest.php')
0 files changed, 0 insertions, 0 deletions