[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [OSSTEST PATCH 02/33] mg-allocate: Do not treat already-allocated resources as satisfactory



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@xxxxxxxxxxxxx>
---
 mg-allocate | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/mg-allocate b/mg-allocate
index d295997..9b66114 100755
--- a/mg-allocate
+++ b/mg-allocate
@@ -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");
-- 
2.1.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.