Improve logging in database conversion; disable orphan cleanup.

pull/1/head
Matthew Chen 8 years ago
parent 8325c37191
commit 02a972c9dc

@ -193,7 +193,7 @@ CHECKOUT OPTIONS:
:commit: d5c2bec :commit: d5c2bec
:git: https://github.com/sqlcipher/sqlcipher.git :git: https://github.com/sqlcipher/sqlcipher.git
YapDatabase: YapDatabase:
:commit: c58c6176941275c13ffe6ad697223e0cc3432928 :commit: 7bd1372b0c766f858410982f773193be45b04590
:git: https://github.com/WhisperSystems/YapDatabase.git :git: https://github.com/WhisperSystems/YapDatabase.git
SPEC CHECKSUMS: SPEC CHECKSUMS:

@ -798,16 +798,16 @@ static NSString *const kURLHostVerifyPrefix = @"verify";
self.isEnvironmentSetup = YES; self.isEnvironmentSetup = YES;
#ifdef DEBUG //#ifdef DEBUG
// A bug in orphan cleanup could be disastrous so let's only // // A bug in orphan cleanup could be disastrous so let's only
// run it in DEBUG builds for a few releases. // // run it in DEBUG builds for a few releases.
// // //
// TODO: Release to production once we have analytics. // // TODO: Release to production once we have analytics.
// TODO: Orphan cleanup is somewhat expensive - not least in doing a bunch // // TODO: Orphan cleanup is somewhat expensive - not least in doing a bunch
// of disk access. We might want to only run it "once per version" // // of disk access. We might want to only run it "once per version"
// or something like that in production. // // or something like that in production.
[OWSOrphanedDataCleaner auditAndCleanupAsync:nil]; // [OWSOrphanedDataCleaner auditAndCleanupAsync:nil];
#endif //#endif
[OWSProfileManager.sharedManager fetchLocalUsersProfile]; [OWSProfileManager.sharedManager fetchLocalUsersProfile];
[[OWSReadReceiptManager sharedManager] prepareCachedValues]; [[OWSReadReceiptManager sharedManager] prepareCachedValues];

Loading…
Cancel
Save