From 7cbc2cfccab18157186a2dacbfac79ab48d80b7b Mon Sep 17 00:00:00 2001 From: "Leigh B. Stoller" Date: Fri, 6 Mar 2009 19:23:56 +0000 Subject: [PATCH] When creating vnodes, make sure there is a new uuid for each one. --- db/Node.pm.in | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/db/Node.pm.in b/db/Node.pm.in index 134911502..59eacde31 100644 --- a/db/Node.pm.in +++ b/db/Node.pm.in @@ -1398,12 +1398,6 @@ sub CreateVnodes($$) return -1; } - my $uuid = NewUUID(); - if (!defined($uuid)) { - print STDERR "Could not generate a UUID!\n"; - next NODE; - } - # # Assign however many we are told to (typically by assign). Locally # this is not a problem since nodes are not shared; assign always @@ -1477,6 +1471,12 @@ sub CreateVnodes($$) } my $jailip = "${IPBASE1}.${pnet}.${pnode2}.${i}"; + my $uuid = NewUUID(); + if (!defined($uuid)) { + print STDERR "Could not generate a UUID!\n"; + goto bad; + } + if ($verbose) { print STDERR "Jail IP for $vnodeid is $jailip\n"; if ($impotent) { -- GitLab