/[Apache-SVN]
ViewVC logotype

Revision 1914438


Jump to revision: Previous Next
Author: jorton
Date: Thu Dec 7 18:25:35 2023 UTC (5 months, 3 weeks ago)
Changed paths: 3
Log Message:
mod_dav_fs: Add global mutex around use of lockdb use, since
apr_dbm does not provide thread-safe locking:

* modules/dav/fs/mod_dav_fs.c (dav_fs_get_server_conf):
  Replaces dav_get_lockdb_path.
  (dav_fs_pre_config, dav_fs_child_init): New hooks.
  (dav_fs_post_config): Create & store the mutex here.
  (register_hooks): Register new hooks.

* modules/dav/fs/repos.h: Expose new dav_fs_server_conf struct.

* modules/dav/fs/lock.c (dav_fs_lockdb_cleanup): New cleanup
  which unlocks and closes the dbm handle.
  (dav_fs_really_open_lockdb): Lock the mutex here, register a
  cleanup.
  (dav_fs_open_lockdb): Adjust to use dav_fs_get_server_conf.
  (dav_fs_close_lockdb): Run the cleanup here.

Github: closes #395


Changed paths

Path Details
Directoryhttpd/httpd/trunk/modules/dav/fs/lock.c modified , text changed
Directoryhttpd/httpd/trunk/modules/dav/fs/mod_dav_fs.c modified , text changed
Directoryhttpd/httpd/trunk/modules/dav/fs/repos.h modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26