зеркало из https://github.com/mozilla/gecko-dev.git
0377d8eece
By and large, this change accomplishes two things: 1. Run db.close() in finally clauses so that even if db access fails, we close our connections. It also tries to avoid waiting on other, non-DB operations before calling close, to avoid the DB connection needlessly hanging around. 2. Intercept all async database operations from the remote settings client to kinto and ensuring they complete before the end of `profile-before-change`. Any operations started after Services.startup.isShuttingDown (so after quit/restart is initiated by the user) will throw. Operations started beforehand are put in a set of operations, and remove themselves once complete. We AsyncShutdown block on that set of operations completing. Differential Revision: https://phabricator.services.mozilla.com/D66995 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
unit | ||
moz.build |