IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 3, 2009, 10:10:18 AM (17 years ago)
Author:
jhoblitt
Message:

attempt to optimize _is_valid_object_key() by eliminating an unused join

Location:
trunk/Nebulous-Server
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous-Server/Changes

    r23675 r23698  
    77      component of keys
    88    - add email logging of events to nebdiskd
     9    - attempt to optimize _is_valid_object_key() by eliminating an unused join
    910     
    10110.16
  • trunk/Nebulous-Server/lib/Nebulous/Server.pm

    r23655 r23698  
    14311431    my $ext_id;
    14321432    eval {
    1433         my $query = $db->prepare_cached( $sql->get_object );
     1433        my $query = $db->prepare_cached( $sql->check_object_name );
    14341434        $query->execute($key->path);
    14351435        ($ext_id) = $query->fetchrow_array;
  • trunk/Nebulous-Server/lib/Nebulous/Server/SQL.pm

    r23686 r23698  
    5959        JOIN storage_object_attr
    6060        USING (so_id)
     61        WHERE ext_id = ?
     62    },
     63    check_object_name => qq{
     64        SELECT
     65            so_id,
     66            ext_id
     67        FROM storage_object
    6168        WHERE ext_id = ?
    6269    },
Note: See TracChangeset for help on using the changeset viewer.