Bug 1813986 - Add an asyncVacuum() method to storage async connections, and...
Bug 1813986 - Add an asyncVacuum() method to storage async connections, and let VacuumManager use it. r=asuth Add asyncVacuum to mozIStorageAsyncConnection, that dispatches a runnable to the helper thread, where it will execute a full or incremental vacuum, depending on the connection auto_vacuum value. It also supports vacuuming attached schemas. asyncVacuum() supports changing both the page_size and auto_vacuum. Change mozIStorageVacuumParticipant to return a mozIStorageAsyncConnection and allow specifying whether incremental vacuum should be enabled. Change vacuumManager notification from heavy-io-task to vacuum-begin and vacuum-end since the original proposal of notifying heavy IO didn't take off. Cleanup test_vacuum to be able to use instances of the test VacuumParticipant, that means we can remove the no more necessary registerESM hack. Fix Places History as the only cpp consumer. Differential Revision: https://phabricator.services.mozilla.com/D168298
Showing
- dom/cache/Connection.cpp 6 additions, 0 deletionsdom/cache/Connection.cpp
- storage/VacuumManager.cpp 81 additions, 148 deletionsstorage/VacuumManager.cpp
- storage/mozIStorageAsyncConnection.idl 32 additions, 0 deletionsstorage/mozIStorageAsyncConnection.idl
- storage/mozIStorageVacuumParticipant.idl 15 additions, 7 deletionsstorage/mozIStorageVacuumParticipant.idl
- storage/mozStorageConnection.cpp 239 additions, 6 deletionsstorage/mozStorageConnection.cpp
- storage/mozStorageConnection.h 24 additions, 0 deletionsstorage/mozStorageConnection.h
- storage/test/moz.build 4 additions, 0 deletionsstorage/test/moz.build
- storage/test/unit/VacuumParticipant.sys.mjs 93 additions, 82 deletionsstorage/test/unit/VacuumParticipant.sys.mjs
- storage/test/unit/head_storage.js 2 additions, 4 deletionsstorage/test/unit/head_storage.js
- storage/test/unit/test_vacuum.js 336 additions, 294 deletionsstorage/test/unit/test_vacuum.js
- testing/modules/MockRegistrar.sys.mjs 0 additions, 7 deletionstesting/modules/MockRegistrar.sys.mjs
- toolkit/components/places/nsNavHistory.cpp 12 additions, 2 deletionstoolkit/components/places/nsNavHistory.cpp
Loading
Please register or sign in to comment