* [Patch 2/3] tabled: use correct name for zone attribute
@ 2009-08-29 2:42 Pete Zaitcev
0 siblings, 0 replies; only message in thread
From: Pete Zaitcev @ 2009-08-29 2:42 UTC (permalink / raw)
To: Jeff Garzik; +Cc: Project Hail List
We're such a young project and we have legacy arrangements already.
In particular what's used to be called a "building" is now a "zone",
for the benefit of users running their clouds out of missile silos,
huts, tents, vehicles, etc.
Jokes aside, the patch makes tabled to use the correct name that
corresponds to what Chunk publishes.
Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
diff --git a/server/storparse.c b/server/storparse.c
index eb40dcd..c5dd3b1 100644
--- a/server/storparse.c
+++ b/server/storparse.c
@@ -214,7 +214,7 @@ static void cfg_elm_end (GMarkupParseContext *context,
cc->text = NULL;
}
- else if (!strcmp(element_name, "Zone")) {
+ else if (!strcmp(element_name, "Building")) {
if (!cc->text)
return;
if (cc->text[0] == '-')
@@ -225,7 +225,7 @@ static void cfg_elm_end (GMarkupParseContext *context,
cc->loc.zone = cc->text;
} else {
applog(LOG_WARNING,
- "%s: Zone not in Geo", cc->fname);
+ "%s: Building not in Geo", cc->fname);
free(cc->text);
}
cc->text = NULL;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-08-29 2:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-29 2:42 [Patch 2/3] tabled: use correct name for zone attribute Pete Zaitcev
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.