libidav/session.c

branch
ucx-3.1
changeset 816
839fefbdedc7
parent 806
673a803d2203
equal deleted inserted replaced
815:1f40ca07ae1b 816:839fefbdedc7
29 #include <stdio.h> 29 #include <stdio.h>
30 #include <stdlib.h> 30 #include <stdlib.h>
31 #include <string.h> 31 #include <string.h>
32 32
33 #include <cx/buffer.h> 33 #include <cx/buffer.h>
34 #include <cx/utils.h> 34 #include <cx/mempool.h>
35 #include <cx/basic_mempool.h>
36 #include <cx/hash_map.h> 35 #include <cx/hash_map.h>
37 36
38 #include "utils.h" 37 #include "utils.h"
39 #include "session.h" 38 #include "session.h"
40 #include "resource.h" 39 #include "resource.h"
634 } 633 }
635 634
636 if(cxMapRemoveAndGet(locks->resource_locks, cx_hash_key_str(path))) { 635 if(cxMapRemoveAndGet(locks->resource_locks, cx_hash_key_str(path))) {
637 return; 636 return;
638 } 637 }
639 638
640 CxMutIterator i = cxListMutIterator(locks->collection_locks); 639 cxListFindRemove(locks->collection_locks, lock);
641 int rm = 0; 640 }
642 cx_foreach(DavLock* , cl, i) {
643 if(rm) {
644 break;
645 }
646 if(cl == lock) {
647 cxIteratorFlagRemoval(i);
648 rm = 1;
649 }
650 }
651 }

mercurial