mod_socache_dbm.c revision 8ba562720ad913bc899d15deba8b83dfe1065c0e
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher/* Licensed to the Apache Software Foundation (ASF) under one or more
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher * contributor license agreements. See the NOTICE file distributed with
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher * this work for additional information regarding copyright ownership.
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher * The ASF licenses this file to You under the Apache License, Version 2.0
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher * (the "License"); you may not use this file except in compliance with
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher * the License. You may obtain a copy of the License at
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher * http://www.apache.org/licenses/LICENSE-2.0
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher * Unless required by applicable law or agreed to in writing, software
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher * distributed under the License is distributed on an "AS IS" BASIS,
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher * See the License for the specific language governing permissions and
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher * limitations under the License.
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher/* Use of the context structure must be thread-safe after the initial
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher * create/init; callers must hold the mutex. */
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher /* Pool must only be used with the mutex held. */
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher * Support for DBM library
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher#define DBM_FILE_MODE ( APR_UREAD | APR_UWRITE | APR_GREAD | APR_WREAD )
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher/* ### this should use apr_dbm_usednames. */
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher#if !defined(DBM_FILE_SUFFIX_DIR) && !defined(DBM_FILE_SUFFIX_PAG)
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher#elif defined(__FreeBSD__) || (defined(DB_LOCK) && defined(DB_SHMEM))
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherstatic void socache_dbm_expire(ap_socache_instance_t *ctx, server_rec *s);
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherstatic apr_status_t socache_dbm_remove(ap_socache_instance_t *ctx,
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherstatic const char *socache_dbm_create(ap_socache_instance_t **context,
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher *context = ctx = apr_pcalloc(p, sizeof *ctx);
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher ctx->data_file = ap_server_root_relative(p, arg);
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher return apr_psprintf(tmp, "Invalid cache file path %s", arg);
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherstatic int try_chown(apr_pool_t *p, server_rec *s,
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher name = apr_pstrcat(p, name, suffix, NULL);
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher if (-1 == chown(name, ap_unixd_config.user_id,
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher ap_log_error(APLOG_MARK, APLOG_ERR, APR_FROM_OS_ERROR(errno), s, APLOGNO(00802)
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherstatic apr_status_t socache_dbm_init(ap_socache_instance_t *ctx,
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher /* for the DBM we need the data file */
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher const char *path = apr_pstrcat(p, DEFAULT_DBM_PREFIX, namespace,
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher ctx->data_file = ap_runtime_dir_relative(p, path);
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher ap_log_error(APLOG_MARK, APLOG_ERR, 0, s, APLOGNO(00803)
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher "could not use default path '%s' for DBM socache",
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher /* open it once to create it and to make sure it _can_ be created */
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher if ((rv = apr_dbm_open(&dbm, ctx->data_file,
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher APR_DBM_RWCREATE, DBM_FILE_MODE, ctx->pool)) != APR_SUCCESS) {
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher ap_log_error(APLOG_MARK, APLOG_ERR, rv, s, APLOGNO(00804)
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher "Cannot create socache DBM file `%s'",
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher ctx->expiry_interval = (hints && hints->expiry_interval
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher ? hints->expiry_interval : apr_time_from_sec(30));
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher * We have to make sure the Apache child processes have access to
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher * the DBM file. But because there are brain-dead platforms where we
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher * cannot exactly determine the suffixes we try all possibilities.
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher if (try_chown(p, s, ctx->data_file, DBM_FILE_SUFFIX_DIR))
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher if (try_chown(p, s, ctx->data_file, ".db"))
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher if (try_chown(p, s, ctx->data_file, DBM_FILE_SUFFIX_PAG))
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher if (try_chown(p, s, ctx->data_file, ".db"))
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherstatic void socache_dbm_destroy(ap_socache_instance_t *ctx, server_rec *s)
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher /* the correct way */
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher unlink(apr_pstrcat(ctx->pool, ctx->data_file, DBM_FILE_SUFFIX_DIR, NULL));
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher unlink(apr_pstrcat(ctx->pool, ctx->data_file, DBM_FILE_SUFFIX_PAG, NULL));
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher /* the additional ways to be sure */
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher unlink(apr_pstrcat(ctx->pool, ctx->data_file, ".dir", NULL));
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher unlink(apr_pstrcat(ctx->pool, ctx->data_file, ".pag", NULL));
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher unlink(apr_pstrcat(ctx->pool, ctx->data_file, ".db", NULL));
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherstatic apr_status_t socache_dbm_store(ap_socache_instance_t *ctx,
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher unsigned char *ucaData,
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher /* be careful: do not try to store too much bytes in a DBM file! */
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, s, APLOGNO(00805)
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher "data size too large for DBM socache: %d >= %d",
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher if ((idlen + nData) >= 950 /* at least less than approx. 1KB */) {
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, s, APLOGNO(00806)
8a1738f9379a1b8fb5c95c3df649e014ff5a1434Jan Zeleny "data size too large for DBM socache: %d >= %d",
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher /* create DBM key */
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher /* create DBM value */
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher dbmval.dsize = sizeof(apr_time_t) + nData;
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher dbmval.dptr = (char *)ap_malloc(dbmval.dsize);
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher memcpy((char *)dbmval.dptr, &expiry, sizeof(apr_time_t));
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher memcpy((char *)dbmval.dptr+sizeof(apr_time_t), ucaData, nData);
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher /* and store it to the DBM file */
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher if ((rv = apr_dbm_open(&dbm, ctx->data_file,
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher APR_DBM_RWCREATE, DBM_FILE_MODE, ctx->pool)) != APR_SUCCESS) {
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher ap_log_error(APLOG_MARK, APLOG_ERR, rv, s, APLOGNO(00807)
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher "Cannot open socache DBM file `%s' for writing "
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher if ((rv = apr_dbm_store(dbm, dbmkey, dbmval)) != APR_SUCCESS) {
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher ap_log_error(APLOG_MARK, APLOG_ERR, rv, s, APLOGNO(00808)
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher "Cannot store socache object to DBM file `%s'",
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher /* free temporary buffers */
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher /* allow the regular expiring to occur */
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherstatic apr_status_t socache_dbm_retrieve(ap_socache_instance_t *ctx, server_rec *s,
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher const unsigned char *id, unsigned int idlen,
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher unsigned char *dest, unsigned int *destlen,
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher /* allow the regular expiring to occur */
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher /* create DBM key and values */
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher /* and fetch it from the DBM file
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher * XXX: Should we open the dbm against r->pool so the cleanup will
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher * do the apr_dbm_close? This would make the code a bit cleaner.
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher if ((rc = apr_dbm_open(&dbm, ctx->data_file, APR_DBM_RWCREATE,
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher DBM_FILE_MODE, ctx->pool)) != APR_SUCCESS) {
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher ap_log_error(APLOG_MARK, APLOG_ERR, rc, s, APLOGNO(00809)
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher "Cannot open socache DBM file `%s' for reading "
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher if (dbmval.dptr == NULL || dbmval.dsize <= sizeof(apr_time_t)) {
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher /* parse resulting data */
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher memcpy(&expiry, dbmval.dptr, sizeof(apr_time_t));
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher memcpy(dest, (char *)dbmval.dptr + sizeof(apr_time_t), nData);
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher /* make sure the stuff is still not expired */
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherstatic apr_status_t socache_dbm_remove(ap_socache_instance_t *ctx,
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher /* create DBM key and values */
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher /* and delete it from the DBM file */
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher if ((rv = apr_dbm_open(&dbm, ctx->data_file, APR_DBM_RWCREATE,
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher DBM_FILE_MODE, ctx->pool)) != APR_SUCCESS) {
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher ap_log_error(APLOG_MARK, APLOG_ERR, rv, s, APLOGNO(00810)
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher "Cannot open socache DBM file `%s' for writing "
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherstatic void socache_dbm_expire(ap_socache_instance_t *ctx, server_rec *s)
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher * make sure the expiration for still not-accessed
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher * socache entries is done only from time to time
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher if (now < ctx->last_expiry + ctx->expiry_interval) {
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher * Here we have to be very carefully: Not all DBM libraries are
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher * smart enough to allow one to iterate over the elements and at the
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher * same time delete expired ones. Some of them get totally crazy
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher * while others have no problems. So we have to do it the slower but
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher * more safe way: we first iterate over all elements and remember
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher * those which have to be expired. Then in a second pass we delete
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher * all those expired elements. Additionally we reopen the DBM file
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher * to be really safe in state.
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher /* allocate the key array in a memory sub pool */
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher if ((keylist = apr_palloc(ctx->pool, sizeof(dbmkey)*KEYMAX)) == NULL) {
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher /* pass 1: scan DBM database */
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher if ((rv = apr_dbm_open(&dbm, ctx->data_file, APR_DBM_RWCREATE,
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher DBM_FILE_MODE, ctx->pool)) != APR_SUCCESS) {
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher ap_log_error(APLOG_MARK, APLOG_ERR, rv, s, APLOGNO(00811)
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher "Cannot open socache DBM file `%s' for "
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher if (dbmval.dsize <= sizeof(apr_time_t) || dbmval.dptr == NULL)
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher memcpy(&expiry, dbmval.dptr, sizeof(apr_time_t));
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher if ((keylist[keyidx].dptr = apr_pmemdup(ctx->pool, dbmkey.dptr, dbmkey.dsize)) != NULL) {
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher /* pass 2: delete expired elements */
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher if (apr_dbm_open(&dbm, ctx->data_file, APR_DBM_RWCREATE,
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher DBM_FILE_MODE, ctx->pool) != APR_SUCCESS) {
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher ap_log_error(APLOG_MARK, APLOG_ERR, rv, s, APLOGNO(00812)
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher "Cannot re-open socache DBM file `%s' for "
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher for (i = 0; i < keyidx; i++) {
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, s, APLOGNO(00813)
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher "DBM socache expiry: "
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher "old: %d, new: %d, removed: %d",
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherstatic void socache_dbm_status(ap_socache_instance_t *ctx, request_rec *r,
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher if ((rv = apr_dbm_open(&dbm, ctx->data_file, APR_DBM_RWCREATE,
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher DBM_FILE_MODE, ctx->pool)) != APR_SUCCESS) {
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher ap_log_rerror(APLOG_MARK, APLOG_ERR, rv, r, APLOGNO(00814)
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher "Cannot open socache DBM file `%s' for status "
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher * XXX - Check the return value of apr_dbm_firstkey, apr_dbm_fetch - TBD
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher for ( ; dbmkey.dptr != NULL; apr_dbm_nextkey(dbm, &dbmkey)) {
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher ap_rprintf(r, "cache type: <b>DBM</b>, maximum size: <b>unlimited</b><br>");
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher ap_rprintf(r, "current entries: <b>%d</b>, current size: <b>%ld</b> bytes<br>", elts, size);
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher ap_rprintf(r, "average entry size: <b>%d</b> bytes<br>", avg);
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherstatic apr_status_t socache_dbm_iterate(ap_socache_instance_t *ctx,
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher * make sure the expired records are omitted
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher if ((rv = apr_dbm_open(&dbm, ctx->data_file, APR_DBM_RWCREATE,
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher DBM_FILE_MODE, ctx->pool)) != APR_SUCCESS) {
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher ap_log_error(APLOG_MARK, APLOG_ERR, rv, s, APLOGNO(00815)
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher "Cannot open socache DBM file `%s' for "
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher while (rv == APR_SUCCESS && dbmkey.dptr != NULL) {
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher if (dbmval.dsize <= sizeof(apr_time_t) || dbmval.dptr == NULL)
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher memcpy(&expiry, dbmval.dptr, sizeof(apr_time_t));
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher (unsigned char *)dbmkey.dptr, dbmkey.dsize,
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher (unsigned char *)dbmval.dptr + sizeof(apr_time_t),
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher ap_log_error(APLOG_MARK, APLOG_DEBUG, rv, s, APLOGNO(00816)
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher "dbm `%s' entry iterated", ctx->data_file);
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher ap_log_error(APLOG_MARK, APLOG_ERR, rv, s, APLOGNO(00817)
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher "Failure reading first/next socache DBM file `%s' record",
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherstatic const ap_socache_provider_t socache_dbm = {