Changeset 39926 for trunk/Nebulous/nebclient/src/nebclient.c
- Timestamp:
- Jan 6, 2017, 11:30:10 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
Nebulous/nebclient/src/nebclient.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to
/branches/czw_branch/20160809 merged eligible
-
Property svn:mergeinfo
set to
-
trunk/Nebulous/nebclient/src/nebclient.c
r25000 r39926 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 int v; 538 539 v = gethostname(hostname,256); 540 // fprintf(stderr, "%s %d\n", hostname, v); 541 /* printf("%s %d\n",hostname,v); */ 542 if (v) { 543 nebSetErr(server, "failed to construct hostname"); 544 return NULL; 545 } 546 snprintf(volname,260, "%s.0", hostname); 531 547 532 nebObjectInstances *locations = nebFindInstances(server, key, NULL);548 nebObjectInstances *locations = nebFindInstances(server, key, volname); 533 549 if (!locations) { 534 550 if (!strstr(nebErr(server), "no instances on storage volume")) {
Note:
See TracChangeset
for help on using the changeset viewer.
