- Timestamp:
- Aug 30, 2016, 1:38:49 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.
