Don't attempt to look for files on disk during REPAIR for object types that only exist in the database.

This commit is contained in:
alexhudson
2008-10-17 10:47:22 +00:00
parent d0ae6bc3a6
commit 06013ebc60
+5
View File
@@ -260,6 +260,11 @@ StoreObjectRepair(StoreClient *client, StoreObject *object)
char path[XPL_MAX_PATH + 1];
BOOL need_save = FALSE;
if (STORE_IS_DBONLY(object->type)) {
// no need to look for anything on the file system here
return 0;
}
FindPathToDocument(client, object->collection_guid, object->guid, path, sizeof(path));
result = stat(path, &buffer);