From e71cca128d5e7730c41d354209670bcd98f0018e Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Mon, 24 Aug 2015 09:47:33 +0200 Subject: [PATCH] csync_update: Use excluded_traversal() to improve performance #3638 --- csync/src/csync_statedb.c | 2 +- csync/src/csync_update.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/csync/src/csync_statedb.c b/csync/src/csync_statedb.c index c951fe90f..f12e0b161 100644 --- a/csync/src/csync_statedb.c +++ b/csync/src/csync_statedb.c @@ -488,7 +488,7 @@ int csync_statedb_get_below_path( CSYNC *ctx, const char *path ) { /* Check for exclusion from the tree. * Note that this is only a safety net in case the ignore list changes * without a full remote discovery being triggered. */ - CSYNC_EXCLUDE_TYPE excluded = csync_excluded(ctx, st->path, st->type); + CSYNC_EXCLUDE_TYPE excluded = csync_excluded_traversal(ctx->excludes, st->path, st->type); if (excluded != CSYNC_NOT_EXCLUDED) { CSYNC_LOG(CSYNC_LOG_PRIORITY_TRACE, "%s excluded (%d)", st->path, excluded); diff --git a/csync/src/csync_update.c b/csync/src/csync_update.c index 80dca8401..9d347b3c2 100644 --- a/csync/src/csync_update.c +++ b/csync/src/csync_update.c @@ -167,7 +167,7 @@ static int _csync_detect_update(CSYNC *ctx, const char *file, excluded =CSYNC_FILE_EXCLUDE_STAT_FAILED; } else { /* Check if file is excluded */ - excluded = csync_excluded(ctx, path,type); + excluded = csync_excluded_traversal(ctx->excludes, path, type); } if( excluded == CSYNC_NOT_EXCLUDED ) { -- 2.30.2