IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 4, 2007, 1:36:46 PM (19 years ago)
Author:
jhoblitt
Message:

rework the getmountedvol() stored procedure to attempt to work around what appears to be some nasty transacational isolation leak throught that was causing getmountedvol() to randomly hang when nebdiskd changed the mount table.

File:
1 edited

Legend:

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

    r13244 r13251  
    11# Copyright (c) 2004  Joshua Hoblitt
    22#
    3 # $Id: Server.pm,v 1.37 2007-05-04 20:46:29 jhoblitt Exp $
     3# $Id: Server.pm,v 1.38 2007-05-04 23:36:46 jhoblitt Exp $
    44
    55package Nebulous::Server;
     
    930930    my $query;
    931931    eval {
    932         {
    933             # ask the db to generate the table of mounted Nebulous volume
    934             my $query = $db->prepare_cached("call getmountedvol()");
    935             $query->execute();
    936         }
    937 
    938         $log->debug("generated mountedvol table");
    939 
    940932        if ($vol_name) {
    941933            $query = $db->prepare_cached( $sql->get_object_instances_by_vol_name );
     
    11141106    my ($vol_id, $vol_path);
    11151107    eval {
    1116         {
    1117             # ask the db to generate the table of mounted Nebulous volume
    1118             my $query = $db->prepare_cached("call getmountedvol()");
    1119             $query->execute();
    1120         }
    1121 
    11221108        # TODO cache this?
    11231109        my $query;
Note: See TracChangeset for help on using the changeset viewer.