MCPcopy Create free account
hub / github.com/apache/httpd / dav_fs_remove_locknull_state

Function dav_fs_remove_locknull_state

modules/dav/fs/lock.c:959–974  ·  view source on GitHub ↗

** dav_fs_remove_locknull_state: Given a request, check to see if r->filename ** is/was a lock-null resource. If so, return it to an existent state, i.e. ** remove it from the list in the appropriate .DAV/locknull file. */

Source from the content-addressed store, hash-verified

957** remove it from the list in the appropriate .DAV/locknull file.
958*/
959static dav_error * dav_fs_remove_locknull_state(
960 dav_lockdb *lockdb,
961 const dav_resource *resource)
962{
963 dav_buffer buf = { 0 };
964 dav_error *err;
965 apr_pool_t *p = lockdb->info->pool;
966 const char *pathname = dav_fs_pathname(resource);
967
968 if ((err = dav_fs_remove_locknull_member(p, pathname, &buf)) != NULL) {
969 /* ### add a higher-level description? */
970 return err;
971 }
972
973 return NULL;
974}
975
976static dav_error * dav_fs_create_lock(dav_lockdb *lockdb,
977 const dav_resource *resource,

Callers

nothing calls this directly

Calls 2

dav_fs_pathnameFunction · 0.85

Tested by

no test coverage detected