Revision ca2a1a42 include/Host.h

View differences:

include/Host.h
402 402
     */
403 403
    const set<int>& get_prev_rediscovered_vms() const
404 404
    {
405
        return prev_rediscovered_vms;
405
        return *prev_rediscovered_vms;
406 406
    }
407 407

  
408 408
    /**
......
412 412
     */
413 413
    void set_prev_rediscovered_vms(const set<int>& rediscovered_vms)
414 414
    {
415
        prev_rediscovered_vms = rediscovered_vms;
415
        *prev_rediscovered_vms = rediscovered_vms;
416 416
    }
417 417

  
418 418
private:
......
453 453
    /**
454 454
     *  The Share represents the logical capacity associated with the host
455 455
     */
456
    HostShare       host_share;
456
    HostShare host_share;
457 457

  
458 458
    /**
459 459
     * Tmp set of lost VM IDs. Used to give lost VMs one grace cycle, in case
460 460
     * they reappear.
461 461
     */
462
    set<int>        tmp_lost_vms;
462
    set<int> * tmp_lost_vms;
463 463

  
464 464
    /**
465 465
     * Tmp set of zombie VM IDs. Used to give zombie VMs one grace cycle, in
466 466
     * case they are cleaned.
467 467
     */
468
    set<int>        tmp_zombie_vms;
468
    set<int> * tmp_zombie_vms;
469 469

  
470 470
    /**
471 471
     * Set that stores the VMs reported as found from the poweroff state. This
472 472
     * is managed from outside the host to avoid deadlocks, as the current
473 473
     * VM state is needed
474 474
     */
475
    set<int>        prev_rediscovered_vms;
475
    set<int> * prev_rediscovered_vms;
476 476

  
477 477
    // -------------------------------------------------------------------------
478 478
    //  VM Collection

Also available in: Unified diff