dav/db.c

changeset 550
8c700eae3eb8
parent 541
e59a989d890d
child 552
e1a12762bf0a
equal deleted inserted replaced
549:af91d3c96994 550:8c700eae3eb8
661 if(part->hash) { 661 if(part->hash) {
662 free(part->hash); 662 free(part->hash);
663 } 663 }
664 free(part); 664 free(part);
665 } 665 }
666
667 UcxMap* create_hash_index(SyncDatabase *db) {
668 UcxMap *hmap = ucx_map_new(db->resources->count + 64);
669
670 UcxMapIterator i = ucx_map_iterator(db->resources);
671 UcxKey key;
672 LocalResource *res;
673 UCX_MAP_FOREACH(key, res, i) {
674 if(res->hash) {
675 ucx_map_cstr_put(hmap, res->hash, res);
676 }
677 }
678
679 return hmap;
680 }

mercurial