Changeset 17716 for trunk/Nebulous-Server/lib/Nebulous/Server.pm
- Timestamp:
- May 16, 2008, 10:22:29 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/Nebulous-Server/lib/Nebulous/Server.pm (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous-Server/lib/Nebulous/Server.pm
r17694 r17716 1 1 # Copyright (c) 2004-2008 Joshua Hoblitt 2 2 # 3 # $Id: Server.pm,v 1.7 1 2008-05-15 03:27:28jhoblitt Exp $3 # $Id: Server.pm,v 1.72 2008-05-16 20:22:29 jhoblitt Exp $ 4 4 5 5 package Nebulous::Server; … … 9 9 no warnings qw( uninitialized ); 10 10 11 our $VERSION = '0.1 0';11 our $VERSION = '0.11'; 12 12 13 13 use base qw( Class::Accessor::Fast ); … … 937 937 unless ($rows > 0) { 938 938 $query->finish; 939 $log->logdie("no instances on storage volume : $vol_name or volume is not available");939 $log->logdie("no instances on storage volume or volume is not avaiable for key: $key volume: $vol_name"); 940 940 } 941 941 } else { … … 945 945 unless ($rows > 0) { 946 946 $query->finish; 947 $log->logdie("no instances available ");947 $log->logdie("no instances available for key: $key"); 948 948 } 949 949 } … … 1295 1295 unless (open($fh, '>', $path)); 1296 1296 1297 # chmod before fsync() to make sure the changed perms hit the disk too 1298 die "can not chmod $path: $!" 1299 unless (chmod 0664, $path); 1300 1301 die "can not flush $path: $!" 1302 unless ($fh->flush); 1303 1304 die "can not sync $path: $!" 1305 unless ($fh->sync); 1306 1297 1307 die "can not close $path: $!" 1298 1308 unless (close($fh)); 1299 1300 die "can not chmod $path: $!"1301 unless (chmod 0664, $path);1302 1309 1303 1310 return $path;
Note:
See TracChangeset
for help on using the changeset viewer.
