Log the fact that csync was aborted

This commit is contained in:
Olivier Goffart 2013-06-19 18:41:30 +02:00
parent 3d2c3b321c
commit 0dbecb129e
2 changed files with 3 additions and 0 deletions

View file

@ -1431,6 +1431,7 @@ static int _csync_propagation_file_visitor(void *obj, void *data) {
ctx = (CSYNC *) data;
if (ctx->abort) {
CSYNC_LOG(CSYNC_LOG_PRIORITY_TRACE, "Aborted!");
ctx->error_code = CSYNC_ERR_ABORTED;
return -1;
}
@ -1498,6 +1499,7 @@ static int _csync_propagation_dir_visitor(void *obj, void *data) {
ctx = (CSYNC *) data;
if (ctx->abort) {
CSYNC_LOG(CSYNC_LOG_PRIORITY_TRACE, "Aborted!");
ctx->error_code = CSYNC_ERR_ABORTED;
return -1;
}

View file

@ -280,6 +280,7 @@ int csync_walker(CSYNC *ctx, const char *file, const csync_vio_file_stat_t *fs,
uint64_t h;
if (ctx->abort) {
CSYNC_LOG(CSYNC_LOG_PRIORITY_TRACE, "Aborted!");
ctx->error_code = CSYNC_ERR_ABORTED;
return -1;
}