You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Guenter Knauf <fu...@apache.org> on 2012/09/19 00:14:28 UTC

Re: svn commit: r1386880 - in /httpd/httpd/trunk: docs/log-message-tags/next-number docs/manual/mod/mod_slotmem_plain.xml docs/manual/mod/mod_slotmem_shm.xml include/ap_slotmem.h modules/slotmem/mod_slotmem_plain.c modules/slotmem/mod_slotmem_shm.c

Hi Jim,
your commit below introduced a comment close tag which seems misplaced ...
I did just remove this with r1387389 - if you intended to comment out 
something there then please review ...

Gün.

Am 18.09.2012 00:26, schrieb jim@apache.org:
> Author: jim
> Date: Mon Sep 17 22:26:28 2012
> New Revision: 1386880
>
> URL: http://svn.apache.org/viewvc?rev=1386880&view=rev
> Log:
> Allow for a forced grab of a slotmem slot.
>
> Modified:
>      httpd/httpd/trunk/docs/log-message-tags/next-number
>      httpd/httpd/trunk/docs/manual/mod/mod_slotmem_plain.xml
>      httpd/httpd/trunk/docs/manual/mod/mod_slotmem_shm.xml
>      httpd/httpd/trunk/include/ap_slotmem.h
>      httpd/httpd/trunk/modules/slotmem/mod_slotmem_plain.c
>      httpd/httpd/trunk/modules/slotmem/mod_slotmem_shm.c
>
> Modified: httpd/httpd/trunk/modules/slotmem/mod_slotmem_plain.c
> URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/slotmem/mod_slotmem_plain.c?rev=1386880&r1=1386879&r2=1386880&view=diff
> ==============================================================================
> --- httpd/httpd/trunk/modules/slotmem/mod_slotmem_plain.c (original)
> +++ httpd/httpd/trunk/modules/slotmem/mod_slotmem_plain.c Mon Sep 17 22:26:28 2012
...
> @@ -251,13 +257,31 @@ static apr_status_t slotmem_grab(ap_slot
>           }
>       }
>       if (i>= slot->num) {
> -        return APR_ENOSHMAVAIL;
> +        return APR_EINVAL;
>       }
>       *inuse = 1;
>       *id = i;
>       return APR_SUCCESS;
>   }
>
> +*/
    ^

> +static apr_status_t slotmem_fgrab(ap_slotmem_instance_t *slot, unsigned int id)
> +{
> +    unsigned int i;
> +    char *inuse;
> +
> +    if (!slot) {
> +        return APR_ENOSHMAVAIL;
> +    }
> +
> +    if (id>= slot->num) {
> +        return APR_EINVAL;
> +    }
> +    inuse = slot->inuse + id;
> +    *inuse = 1;
> +    return APR_SUCCESS;
> +}
> +
>   static apr_status_t slotmem_release(ap_slotmem_instance_t *slot, unsigned int id)
>   {
>       char *inuse;