Remove cheetah code from core
authorEduardo Silva <edsiper@gmail.com>
Mon, 28 Sep 2009 18:19:30 +0000 (14:19 -0400)
committerEduardo Silva <edsiper@gmail.com>
Mon, 28 Sep 2009 18:19:30 +0000 (14:19 -0400)
src/config.c
src/include/config.h
src/request.c
src/scheduler.c

index 821e748..e3bb3ad 100644 (file)
@@ -534,7 +534,6 @@ void mk_config_set_init_values(void)
        config->nhosts = 0;
        config->user = NULL;
         config->open_flags = O_RDONLY | O_NONBLOCK;
-        config->cheetah = VAR_OFF;
 
         /* Plugins */
         config->plugins = mk_mem_malloc_z(sizeof(struct plugins));
index 6495787..2d1fb6b 100644 (file)
@@ -83,7 +83,6 @@ struct server_config {
        struct host *hosts;
 
         mode_t open_flags;
-        int cheetah; /* VAR_ON / VAR_OFF */
         struct plugins *plugins;
 };
 
index 342a0ba..b6cb34e 100644 (file)
@@ -185,7 +185,7 @@ int mk_handler_read(int socket)
                 mk_socket_set_nonblocking(socket);
 
                cr = mk_request_client_create(socket);
-       
+
                 /* Update requests counter */
                 mk_sched_update_thread_status(MK_SCHEDULER_ACTIVE_UP,
                                               MK_SCHEDULER_CLOSED_DOWN);
index 44b8be0..e40d42a 100644 (file)
@@ -188,10 +188,6 @@ void mk_sched_update_thread_status(int active, int closed)
 {
         struct sched_list_node *thnode;
 
-        if(config->cheetah == VAR_OFF){
-                return;
-        }
-
         thnode = mk_sched_get_thread_conf();
 
         switch(active){