Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions modules/dav/fs/lock.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,12 +295,14 @@ static apr_status_t dav_fs_lockdb_cleanup(void *data)
{
dav_lockdb *lockdb = data;

apr_global_mutex_unlock(lockdb->info->conf->lockdb_mutex);

/* Close the database before releasing the mutex: closing commits
* pending writes, and the next opener must not overlap it. */
if (lockdb->info->db) {
dav_dbm_close(lockdb->info->db);
}


apr_global_mutex_unlock(lockdb->info->conf->lockdb_mutex);

return APR_SUCCESS;
}

Expand Down
Loading