219
217
"""Reconnect Storm stores, resetting the dbconfig to its defaults.
221
219
After reconnecting, the database revision will be checked to make
222
220
sure the right data is available.
228
225
main_store = getUtility(IStoreSelector).get(MAIN_STORE, DEFAULT_FLAVOR)
229
226
assert main_store is not None, 'Failed to reconnect'
231
231
# Confirm that SQLOS is again talking to the database (it connects
232
232
# as soon as SQLBase._connection is accessed
233
233
r = main_store.execute('SELECT count(*) FROM LaunchpadDatabaseRevision')