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

Unified Diff: sync/syncable/in_memory_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/syncable/in_memory_directory_backing_store.cc
diff --git a/sync/syncable/in_memory_directory_backing_store.cc b/sync/syncable/in_memory_directory_backing_store.cc
index b2797a77a4eaddbbc569850c141ced238c3cde3e..ec09d45c1bcc101118b03fac807444c70434a9ef 100644
--- a/sync/syncable/in_memory_directory_backing_store.cc
+++ b/sync/syncable/in_memory_directory_backing_store.cc
@@ -28,6 +28,8 @@ DirOpenResult InMemoryDirectoryBackingStore::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