IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20202


Ignore:
Timestamp:
Oct 16, 2008, 12:24:39 PM (18 years ago)
Author:
jhoblitt
Message:

call getmountedvol() when changing the volume table

Location:
trunk/Nebulous-Server/bin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous-Server/bin/neb-admin

    r20176 r20202  
    33# Copyright (C) 2005-2008  Joshua Hoblitt
    44#
    5 # $Id: neb-admin,v 1.13 2008-10-15 20:58:02 jhoblitt Exp $
     5# $Id: neb-admin,v 1.14 2008-10-16 22:24:39 jhoblitt Exp $
    66
    77use strict;
     
    199199    exit unless scalar @rows;
    200200
    201     print "replicatePending MULTI\n\n";
     201    print "removalPending MULTI\n\n";
    202202
    203203    foreach my $obj (@rows) {
  • trunk/Nebulous-Server/bin/neb-voladm

    r20174 r20202  
    33# Copyright (C) 2008  Joshua Hoblitt
    44#
    5 # $Id: neb-voladm,v 1.9 2008-10-15 20:39:49 jhoblitt Exp $
     5# $Id: neb-voladm,v 1.10 2008-10-16 22:24:39 jhoblitt Exp $
    66
    77use strict;
     
    8686
    8787if (%set) {
    88     my ($q, @bind) = sql_interp("UPDATE volume AS v SET", \%set, "WHERE", \%constraint);
    89     warn "$q\n" if $debug;
    90     my $query = $dbh->prepare($q);
    91     $query->execute(@bind);
     88    eval {
     89        my ($q, @bind) = sql_interp("UPDATE volume AS v SET", \%set, "WHERE", \%constraint);
     90        warn "$q\n" if $debug;
     91        my $query = $dbh->prepare($q);
     92        $query->execute(@bind);
     93        $dbh->do("call getmountedvol");
     94        $dbh->commit;
     95    };
     96    if ($@) {
     97        $dbh->rollback;
     98        die $@;
     99    }
    92100}
    93101
Note: See TracChangeset for help on using the changeset viewer.