httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guenter Knauf <fua...@apache.org>
Subject 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
Date Tue, 18 Sep 2012 22:14:28 GMT
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;


Mime
View raw message