Changeset 39662 for branches/czw_branch/20160809/Nebulous
- Timestamp:
- Aug 30, 2016, 1:38:49 PM (10 years ago)
- Location:
- branches/czw_branch/20160809/Nebulous
- Files:
-
- 2 edited
-
lib/Nebulous/Client.pm (modified) (2 diffs)
-
nebclient/src/nebclient.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20160809/Nebulous/lib/Nebulous/Client.pm
r31850 r39662 18 18 use Params::Validate qw( validate validate_pos SCALAR UNDEF BOOLEAN ); 19 19 #use SOAP::Lite +trace => [qw( debug )]; 20 use Sys::Hostname; 20 21 use SOAP::Lite; 21 22 use Time::HiRes qw( sleep ); … … 980 981 $log->debug( "entered - @_" ); 981 982 983 my $find_volume = hostname() . ".0"; 984 $params[0] = $find_volume; 982 985 my $locations = $self->find_instances( $key, @params ); 983 986 unless (defined $locations) { -
branches/czw_branch/20160809/Nebulous/nebclient/src/nebclient.c
r25000 r39662 529 529 return NULL; 530 530 } 531 532 // Construct a dummy volume name to allow nebulous to find the 533 // closest instance available. 534 char hostname[256]; 535 char volname[260]; 536 537 if (!gethostname(hostname,256)) { 538 nebSetErr(server, "failed to construct hostname"); 539 return NULL; 540 } 541 snprintf(volname,260, "%s.0", hostname); 531 542 532 nebObjectInstances *locations = nebFindInstances(server, key, NULL);543 nebObjectInstances *locations = nebFindInstances(server, key, volname); 533 544 if (!locations) { 534 545 if (!strstr(nebErr(server), "no instances on storage volume")) {
Note:
See TracChangeset
for help on using the changeset viewer.
