From 06013ebc603cbd0301388ff0b4e42b21d8d4430e Mon Sep 17 00:00:00 2001 From: alexhudson Date: Fri, 17 Oct 2008 10:47:22 +0000 Subject: [PATCH] Don't attempt to look for files on disk during REPAIR for object types that only exist in the database. --- src/agents/store/object-model.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/agents/store/object-model.c b/src/agents/store/object-model.c index 1b8c483..8404bd7 100644 --- a/src/agents/store/object-model.c +++ b/src/agents/store/object-model.c @@ -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);