Revision 621a1869 src/scheduler/include/DatastoreXML.h

View differences:

src/scheduler/include/DatastoreXML.h
70 70
        return oid;
71 71
    };
72 72

  
73
    int get_cid() const
73
    bool is_in_cluster(const set<int> &cids) const
74 74
    {
75
        return cluster_id;
75
        set<int>::const_iterator i;
76

  
77
        for (i = cids.begin(); i != cids.end(); i++)
78
        {
79
            if (cluster_ids.find(*i) != cluster_ids.end())
80
            {
81
                return true;
82
            }
83
        }
84

  
85
        return false;
76 86
    };
77 87

  
78 88
    /**
......
103 113
private:
104 114

  
105 115
    int oid;
106
    int cluster_id;
116
    set<int> cluster_ids;
107 117

  
108 118
    int uid;
109 119
    int gid;

Also available in: Unified diff