Commit 792a23ef authored by Jim Jagielski's avatar Jim Jagielski
Browse files

Only persist if we want it to

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1068072 13f79535-47bb-0310-9956-ffa450edef68
parent df19a77d
Loading
Loading
Loading
Loading
+3 −0
Changes for modules/slotmem/mod_slotmem_shm.c: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -43,6 +43,7 @@
#endif

#define AP_SLOTMEM_IS_PREGRAB(t) (t->desc.type & AP_SLOTMEM_TYPE_PREGRAB)
#define AP_SLOTMEM_IS_PERSIST(t) (t->desc.type & AP_SLOTMEM_TYPE_PERSIST)

/* The description of the slots to reuse the slotmem */
typedef struct {
@@ -208,7 +209,9 @@ static apr_status_t cleanup_slotmem(void *param)
        ap_slotmem_instance_t *next = *mem;
        apr_pool_t *p = next->gpool;
        while (next) {
            if (AP_SLOTMEM_IS_PERSIST(next)) {
                store_slotmem(next);
            }
            apr_shm_destroy((apr_shm_t *)next->shm);
            next = next->next;
        }