Roxen.git / server / base_server / roxen.pike

version» Context lines:

Roxen.git/server/base_server/roxen.pike:4840:    "id CHAR(64) NOT NULL PRIMARY KEY, "    "size INT UNSIGNED NOT NULL DEFAULT 0, "    "uid CHAR(32) NOT NULL DEFAULT '', "    "atime INT UNSIGNED NOT NULL DEFAULT 0,"    "meta MEDIUMBLOB NOT NULL DEFAULT '',"    "data LONGBLOB NOT NULL DEFAULT '',"    "INDEX atime_id (atime, id)"    ")" );    }    +  // Inhibit backups of this table. +  master()->resolv("DBManager.inhibit_backups")("local", name); +     // Create index in old databases. Index is used when flushing old    // entries. Column 'id' is included in index in order to avoid    // reading data file.    array(mapping(string:mixed)) res = QUERY("SHOW INDEX FROM " + name);    if(search(res->Key_name, "atime_id") < 0) {    report_debug("Updating " + name + " image cache: "    "Adding index atime_id on %s... ", name);    int start_time = gethrtime();    QUERY("CREATE INDEX atime_id ON " + name + " (atime, id)");    report_debug("complete. [%f s]\n", (gethrtime() - start_time)/1000000.0);
Roxen.git/server/base_server/roxen.pike:4992:    "atime DATETIME NOT NULL, "    "rep_time DATETIME NOT NULL, "    "sync_time INT NULL, "    "timeout INT NULL, "    "contents MEDIUMBLOB NOT NULL, "    " INDEX(timeout),"    " INDEX(sync_time)"    ")");    }    +  // Inhibit backups of the arguments2 table. +  master()->resolv("DBManager.inhibit_backups") +  ("local", name + "2"); +     if (catch (QUERY ("SELECT rep_time FROM " + name + "2 LIMIT 0")))    {    // Upgrade a table without rep_time.    QUERY ("ALTER TABLE " + name + "2"    " ADD rep_time DATETIME NOT NULL"    " AFTER atime");    }       if (catch (QUERY ("SELECT timeout FROM " + name + "2 LIMIT 0")))    {
Roxen.git/server/base_server/roxen.pike:6448:    dbm_cached_get( "local" )->    query( "CREATE TABLE IF NOT EXISTS "    "compiled_formats ("    " md5 CHAR(32) not null primary key,"    " full BLOB not null,"    " enc BLOB not null"    ")" );    master()->resolv( "DBManager.is_module_table" )    ( 0, "local", "compiled_formats",    "Compiled and cached log and security pattern code. "); +  master()->resolv( "DBManager.inhibit_backups" ) +  ( "local", "compiled_formats", );       slowpipe = ((program)"base_server/slowpipe");    fastpipe = ((program)"base_server/fastpipe");    dump( "etc/modules/DBManager.pmod" );    dump( "etc/modules/VFS.pmod" );    dump( "base_server/slowpipe.pike" );    dump( "base_server/fastpipe.pike" );    dump( "base_server/throttler.pike" );       if (!has_value (compat_levels, roxen_ver))