IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 30, 2007, 4:52:04 PM (19 years ago)
Author:
jhoblitt
Message:

remove $class_id & $comment params from Nebulous::Server->create() and Nebulous::Client->create*() and all supporting functions and tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous-Server/lib/Nebulous/Server/SQL.pm

    r13087 r13092  
    11# Copyright (c) 2004  Joshua Hoblitt
    22#
    3 # $Id: SQL.pm,v 1.29 2007-05-01 02:00:07 jhoblitt Exp $
     3# $Id: SQL.pm,v 1.30 2007-05-01 02:52:04 jhoblitt Exp $
    44
    55package Nebulous::Server::SQL;
     
    2929    new_object_attr  => qq{
    3030        INSERT INTO storage_object_attr
    31         (so_id, class_id, comment, read_lock, write_lock)
    32         VALUES (?, ?, ?, 0, NULL)
     31        (so_id, read_lock, write_lock)
     32        VALUES (?, 0, NULL)
    3333    },
    3434    delete_object       => qq{
     
    4848    get_object          => qq{
    4949        SELECT storage_object.so_id,
    50             ext_id, class_id, comment, read_lock, write_lock, epoch, mtime
     50            ext_id, read_lock, write_lock, epoch, mtime
    5151        FROM storage_object
    5252        LEFT JOIN storage_object_attr
     
    176176        INSERT INTO volume (name, path)
    177177        VALUES (?, ?)
    178     },
    179     get_class_by_id => qq{
    180         SELECT class_id, priority, comment
    181         FROM class
    182         WHERE class_id = ?
    183178    },
    184179    get_volume_by_name => qq{
     
    257252CREATE TABLE storage_object_attr (
    258253    so_id BIGINT NOT NULL AUTO_INCREMENT,
    259     class_id TINYINT NOT NULL,
    260     comment VARCHAR(255),
    261254    read_lock TINYINT DEFAULT 0 NOT NULL,
    262255    write_lock ENUM( 'write' ),
    263256    epoch TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
    264257    mtime TIMESTAMP,
    265     PRIMARY KEY(so_id),
    266     KEY(class_id)
     258    PRIMARY KEY(so_id)
    267259) ENGINE=innodb;
    268260
     
    318310    PRIMARY KEY(mountpoint)
    319311) ENGINE=innodb;
    320 
    321 ###
    322 
    323 CREATE TABLE class (
    324     class_id TINYINT NOT NULL,
    325     priority TINYINT,
    326     comment VARCHAR(255),
    327     PRIMARY KEY(class_id)
    328 ) ENGINE=innodb;
    329 
    330 ###
    331 
    332 INSERT INTO class VALUES(0,0, 'default class ID');
    333312
    334313###
Note: See TracChangeset for help on using the changeset viewer.