[Pkg-owncloud-commits] [owncloud-client] 05/218: csync_update: Use excluded_traversal() to improve performance #3638

Sandro Knauß hefee-guest at moszumanska.debian.org
Sat Oct 17 14:30:30 UTC 2015


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit e71cca128d5e7730c41d354209670bcd98f0018e
Author: Christian Kamm <mail at ckamm.de>
Date:   Mon Aug 24 09:47:33 2015 +0200

    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 c951fe9..f12e0b1 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 80dca84..9d347b3 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 ) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list