Roxen.git / server / base_server / global_variables.pike

version» Context lines:

Roxen.git/server/base_server/global_variables.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2004, Roxen IS. - // $Id: global_variables.pike,v 1.107 2008/02/06 12:42:42 noring Exp $ + // $Id: global_variables.pike,v 1.108 2008/02/07 10:05:29 noring Exp $      // #pragma strict_types   #define DEFVAR mixed...:object   #define BDEFVAR mixed...:object      #define IN_ROXEN   #include <module.h>   inherit "read_config";   inherit "basic_defvar";   #include <version.h>
Roxen.git/server/base_server/global_variables.pike:306:    "<b>Medium</b> catches 99.99 % of all "    "errors. Should be good enough for most "    "cases. "    "<b>Extended</b> checks the tables VERY "    "throughly. Only use this in extreme cases "    "as myisamchk should normally be able to "    "find out if the table is OK even without "    "this switch.")))    ->set_changed_callback(lambda(Variable.Variable s)    { -  string options = "--force" -  " --silent"; +  string options = "";    switch(query("myisamchk"))    {    case "Disable check": -  options = ""; +     break;    case "Fast check and repair": -  options += " --fast\n" +  options += "--force --fast --silent\n"    "--myisam-recover=QUICK,FORCE\n";    break;    case "Normal check and repair": -  options += " --check\n" +  options += "--force --check\n"    "--myisam-recover=DEFAULT,FORCE\n";    break;    case "Medium check and repair": -  options += " --medium-check\n" +  options += "--force --medium-check\n"    "--myisam-recover=DEFAULT,FORCE\n";    break;    case "Extended check and repair": -  options += " --extend-check\n" +  options += "--force --extend-check\n"    "--myisam-recover=DEFAULT,FORCE\n";    break;    default:    error("Unknown myisamchk level %O\n",    query("myisamchk"));    return;    }    Stdio.write_file(combine_path(roxenloader.query_configuration_dir(), "_mysql_table_check"), options);    });