Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:1741:       if (stringp(m->extra_heads["content-type"]) ||    stringp(m->type)) {    res += sprintf(" of %O", m->type||m->extra_heads["content-type"]);    }       return res;   }      //! Find all applicable locks for this user on @[path]. - multiset(DAVLock) find_locks(string path, int(-1..1) recursive, + mapping(string:DAVLock) find_locks(string path, int(-1..1) recursive,    int(0..1) exclude_shared, RequestID id)   {    SIMPLE_TRACE_ENTER(0, "find_locks(%O, %O, %O, X)",    path, recursive, exclude_shared); -  multiset(DAVLock) locks = (<>); +  mapping(string:DAVLock) locks = ([]);       foreach(location_module_cache||location_modules(),    [string loc, function func])    {    SIMPLE_TRACE_ENTER(function_object(func),    "Finding locks in %O.", loc);    string subpath;    if (has_prefix(path, loc)) {    // path == loc + subpath.    subpath = path[sizeof(loc)..];    } else if (recursive && has_prefix(loc, path)) {    // loc == path + ignored.    subpath = "/";    } else {    // Does not apply to this location module.    TRACE_LEAVE("Skip this module.");    continue;    }    TRACE_ENTER(sprintf("subpath: %O", subpath),    function_object(func)->find_locks); -  multiset(DAVLock) sub_locks = +  mapping(string:DAVLock) sub_locks =    function_object(func)->find_locks(subpath, recursive,    exclude_shared, id);    TRACE_LEAVE("");    if (sub_locks) {    SIMPLE_TRACE_LEAVE("Got some locks: %O", sub_locks);    locks |= sub_locks;    } else {    TRACE_LEAVE("Got no locks.");    }    }