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.
This commit is contained in:
Andreas Schneider 2008-06-18 10:44:40 +02:00
parent 51728fdd25
commit 8f427a8ccb

View File

@ -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;