}
static const char *CONF_METAVARIABLES[] =
- { "cluster", "type", "name", "host", "num", "id" };
+ { "cluster", "type", "name", "host", "num", "id", "pid" };
static const int NUM_CONF_METAVARIABLES =
(sizeof(CONF_METAVARIABLES) / sizeof(CONF_METAVARIABLES[0]));
out += name.get_id().c_str();
else if (var == "id")
out += name.get_id().c_str();
+ else if (var == "pid")
+ out += stringify(getpid());
else
assert(0); // unreachable
found_meta = true;