Delay database access in ExtensionManager.
Review Request #14767 — Created Jan. 8, 2026 and updated — Latest diff uploaded
For production code, the
ExtensionManagerinstance is typically
created as part of application init, because it needs to contribute to
URLs. This was causing database access to occur before apps were fully
ready, spewing warnings.This change adds a
delay_initparameter to theExtensionManager
constructor. When this is set toTrue, we hold off on creating the
GenerationSynchronizeruntil later. For unit tests, we pass this in as
False. For real code, we pass this in asTrueand then theload()
method will end up finishing the initialization.
- Ran unit tests.
- Ran the Review Board devserver (with some matching changes to that
codebase) and saw no more errors about early database access.