AFS

 view release on metacpan or  search on metacpan

examples/v2/vldb/syncvldb  view on Meta::CPAN

#!/usr/local/bin/perl

use blib;
use strict;
use warnings;

use AFS::VLDB;

my ($vldb, $server, $partition, $ok);

die "Usage: $0 server [partition] \n" if $#ARGV < 0;

$server    = shift;
$partition = shift;

$vldb = AFS::VLDB->new;
$AFS::CODE and print "AFS::CODE = $AFS::CODE\n";

if (defined $partition and defined $server) {
    $ok = $vldb->syncvldb($server, $partition);
    if ($AFS::CODE) { print "AFS::CODE = $AFS::CODE\n"; }
    else            { print "VLDB synchronized with state of server $server partition $partition \n"; }
}
else {
    $ok = $vldb->syncvldb($server);
    if ($AFS::CODE) { print "AFS::CODE = $AFS::CODE\n"; }
    else            { print "VLDB synchronized with state of server $server \n"; }
}



( run in 1.714 second using v1.01-cache-2.11-cpan-ecdf5575e8d )