From 6beaa87da938f2a530939714b732fa769a28a008 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 24 Jun 2007 13:24:20 +0000 Subject: [PATCH] r23594: Fix parsing of local pids if cluster support is compiled in but no cluster is used --- source/lib/util.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/lib/util.c b/source/lib/util.c index 7a927fb3e81..c0f2c5648e9 100644 --- a/source/lib/util.c +++ b/source/lib/util.c @@ -3143,6 +3143,10 @@ struct server_id interpret_pid(const char *pid_string) result.vnn = vnn; result.pid = pid; } + else if (sscanf(pid_string, "%u", &pid) == 1) { + result.vnn = NONCLUSTER_VNN; + result.pid = pid; + } else { result.vnn = NONCLUSTER_VNN; result.pid = -1; -- 2.47.3