Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(677)

Unified Diff: sync/test/test_directory_backing_store.cc

Issue 10821121: sync: Attempt to recover from directory corruption (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sync/test/test_directory_backing_store.cc
diff --git a/sync/test/test_directory_backing_store.cc b/sync/test/test_directory_backing_store.cc
index 271605cbe449fe0afcb0d67f2d57f4b2d2f30deb..81d059032e8b722922a3728d3b75be180876cefe 100644
--- a/sync/test/test_directory_backing_store.cc
+++ b/sync/test/test_directory_backing_store.cc
@@ -35,6 +35,8 @@ DirOpenResult TestDirectoryBackingStore::Load(
return FAILED_DATABASE_CORRUPT;
if (!LoadInfo(kernel_load_info))
return FAILED_DATABASE_CORRUPT;
+ if (!VerifyReferenceIntegrity(*entry_bucket))
+ return FAILED_DATABASE_CORRUPT;
return OPENED;
}

Powered by Google App Engine
This is Rietveld 408576698