Skip to content

Commit c3bafd8

Browse files
author
virco
committed
fix
1 parent 95e80c1 commit c3bafd8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ppathstatus.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -507,11 +507,11 @@ static psync_folderid_t get_sync_parent_folder(sync_data_t *sd, psync_folderid_t
507507
uint32_t h;
508508
if (folderid==0)
509509
return PSYNC_INVALID_FOLDERID;
510-
h=hash_folderid(folderid)%PARENT_HASH_SIZE;
510+
h=hash_folderid(folderid)%SYNC_PARENT_HASH_SIZE;
511511
psync_list_for_each_element (p, &sd->parent_cache_hash[h], parent_cache_entry_t, list_hash)
512512
if (p->folderid==folderid) {
513513
psync_list_del(&p->list_lru);
514-
psync_list_add_tail(&parent_cache_lru, &p->list_lru);
514+
psync_list_add_tail(&sd->parent_cache_lru, &p->list_lru);
515515
return p->parentfolderid;
516516
}
517517
res=psync_sql_query_nolock("SELECT localparentfolderid FROM localfolder WHERE id=?");

0 commit comments

Comments
 (0)