opennebula-lease-reservation-v1-fix-lease-counter.patch
| src/vnm/FixedLeases.cc | ||
|---|---|---|
| 525 | 525 |
return -1; |
| 526 | 526 |
} |
| 527 | 527 |
|
| 528 |
if ( !it->second->is_used() )
|
|
| 528 |
if ( !it->second->used && (uid != -1 || gid != -1) )
|
|
| 529 | 529 |
{
|
| 530 |
it->second->used = true; |
|
| 531 |
it->second->vid = -1; |
|
| 530 |
it->second->used = true; //set lease being reserved as used |
|
| 532 | 531 |
|
| 533 | 532 |
n_used++; |
| 534 | 533 |
} |
| 535 |
- |
|