]> granicus.if.org Git - apache/commitdiff
An error detect question in comments
authorJim Jagielski <jim@apache.org>
Thu, 3 Sep 2009 16:02:18 +0000 (16:02 +0000)
committerJim Jagielski <jim@apache.org>
Thu, 3 Sep 2009 16:02:18 +0000 (16:02 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@811009 13f79535-47bb-0310-9956-ffa450edef68

modules/slotmem/mod_slotmem_shm.c

index 4100bd49772857d3f039d67e873f2b423fd8bd7a..ff9627fe924be2893297f1a805e9bc0250b62322 100644 (file)
@@ -153,6 +153,7 @@ static void store_slotmem(ap_slotmem_instance_t *slotmem)
     apr_file_close(fp);
 }
 
+/* should be apr_status_t really */
 static void restore_slotmem(void *ptr, const char *name, apr_size_t size,
                             apr_pool_t *pool)
 {
@@ -318,6 +319,10 @@ static apr_status_t slotmem_create(ap_slotmem_instance_t **new,
         memcpy(ptr, &desc, sizeof(desc));
         ptr = ptr + sizeof(desc);
         memset(ptr, 0, dsize);
+        /*
+         * TODO: Error check the below... What error makes
+         * sense if the restore fails? Any?
+         */
         if (type & AP_SLOTMEM_TYPE_PERSIST)
             restore_slotmem(ptr, fname, dsize, pool);
     }