Skip to content

Commit

Permalink
[server] Skip scanning identical dirs in get_deleted().
Browse files Browse the repository at this point in the history
  • Loading branch information
killing committed Jan 13, 2016
1 parent 15364a7 commit 9380fd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/repo-op.c
Original file line number Diff line number Diff line change
Expand Up @@ -4691,7 +4691,7 @@ find_deleted_recursive (SeafRepo *repo,
if ((dent1->mode & S_IFMT) != (dent2->mode & S_IFMT)) {
/* both exists but with diffent type. */
add_deleted_entry (repo, entries, dent2, base, child, parent);
} else if (S_ISDIR(dent1->mode)) {
} else if (S_ISDIR(dent1->mode) && strcmp(dent1->id, dent2->id) != 0) {
SeafDir *n1 = seaf_fs_manager_get_seafdir_sorted (seaf->fs_mgr,
repo->id,
repo->version,
Expand Down

0 comments on commit 9380fd5

Please sign in to comment.