]> xenbits.xensource.com Git - people/aperard/osstest.git/commitdiff
mg-allocate: Do not treat already-allocated resources as satisfactory
authorIan Jackson <ian.jackson@eu.citrix.com>
Thu, 7 Jul 2016 15:58:04 +0000 (16:58 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 14 Jul 2016 12:03:34 +0000 (13:03 +0100)
This was always rather odd for ./mg-allocate HOSTNAME but makes the
more sophisticated uses like ./mg-allocate '{FLAG,FLAG,...}' very much
less useful.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
mg-allocate

index d2959974407b60d328cc3993b591f84269e2cc0e..9b661140dcb8ef471fb07e7eff1b3a79590b50ee 100755 (executable)
@@ -234,8 +234,7 @@ END
         if ($allocate) {
             if ($candrow->{owntaskid} == $tid) {
                 logm("$desc: already allocated to $tid");
-                $got_shareix= $candrow->{shareix};
-                $ok=1; last;
+               next;
             }
             if ($isshared) {
                 logm("$desc: available, unsharing");