From 8f427a8ccb789165ac85158800092fb9dfd98a92 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 18 Jun 2008 10:44:40 +0200 Subject: [PATCH] Set instruction to UPDATED for newly created files. This is needed that csync knows which file stats need to be updated. We need the new inode number for the journal. --- src/csync_propagate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/csync_propagate.c b/src/csync_propagate.c index 418716354e..0235138531 100644 --- a/src/csync_propagate.c +++ b/src/csync_propagate.c @@ -236,7 +236,7 @@ static int _csync_push_file(CSYNC *ctx, csync_file_stat_t *st) { ctx->replica = drep; csync_vio_utimes(ctx, duri, times); - st->instruction = CSYNC_INSTRUCTION_NONE; + st->instruction = CSYNC_INSTRUCTION_UPDATED; CSYNC_LOG(CSYNC_LOG_PRIORITY_DEBUG, "file: %s, instruction: PUSHED", duri); @@ -377,7 +377,7 @@ static int _csync_new_dir(CSYNC *ctx, csync_file_stat_t *st) { csync_vio_utimes(ctx, uri, times); - st->instruction = CSYNC_INSTRUCTION_NONE; + st->instruction = CSYNC_INSTRUCTION_UPDATED; CSYNC_LOG(CSYNC_LOG_PRIORITY_DEBUG, "dir: %s, instruction: CREATED", uri); ctx->replica = replica_bak;