Revision fc15b997 src/host/ClusterPool.cc

View differences:

src/host/ClusterPool.cc
25 25
    "oid INTEGER PRIMARY KEY, cluster_name VARCHAR(128), "
26 26
    "UNIQUE(cluster_name) )";
27 27

  
28
const string ClusterPool::DEFAULT_CLUSTER_NAME = "default";
29

  
28 30
/* -------------------------------------------------------------------------- */
29 31

  
30 32
int ClusterPool::allocate(int * clid, string name, SqlDB *db)
......
74 76

  
75 77
    if(it != cluster_names.end())
76 78
    {
77
        dump(oss, it->first, it->second);
79
        dump_cluster(oss, it->first, it->second);
78 80
    }
79 81

  
80 82
    return oss.str();
......
116 118

  
117 119
    for(it=cluster_names.begin();it!=cluster_names.end();it++)
118 120
    {
119
        dump(oss, it->first, it->second);
121
        dump_cluster(oss, it->first, it->second);
120 122
    }
121 123

  
122 124
    oss << "</CLUSTER_POOL>";
......
125 127
}
126 128

  
127 129
/* -------------------------------------------------------------------------- */
130
/* -------------------------------------------------------------------------- */
128 131

  
129 132
int ClusterPool::insert(int oid, string name, SqlDB *db)
130 133
{
......
158 161
}
159 162

  
160 163
/* -------------------------------------------------------------------------- */
164
/* -------------------------------------------------------------------------- */
161 165

  
162
void ClusterPool::dump(ostringstream& oss, int id, string name)
166
void ClusterPool::dump_cluster(ostringstream& oss, int id, string name)
163 167
{
164 168
    oss <<
165 169
        "<CLUSTER>"     <<

Also available in: Unified diff