Revision 621a1869 include/Cluster.h

View differences:

include/Cluster.h
201 201
     */
202 202
    int from_xml(const string &xml_str);
203 203

  
204
    static const char * host_table;
205

  
206
    static const char * datastore_table;
207

  
208
    static const char * network_table;
209

  
204 210
private:
205 211

  
206 212
    // -------------------------------------------------------------------------
......
232 238
    // *************************************************************************
233 239

  
234 240
    static const char * db_names;
235

  
236 241
    static const char * db_bootstrap;
237

  
238 242
    static const char * table;
239 243

  
244
    static const char * host_db_names;
245
    static const char * host_db_bootstrap;
246

  
247
    static const char * datastore_db_names;
248
    static const char * datastore_db_bootstrap;
249

  
250
    static const char * network_db_names;
251
    static const char * network_db_bootstrap;
252

  
240 253
    /**
241 254
     *  Execute an INSERT or REPLACE Sql query.
242 255
     *    @param db The SQL DB
......
252 265
     */
253 266
    static int bootstrap(SqlDB * db)
254 267
    {
255
        ostringstream oss(Cluster::db_bootstrap);
268
        int rc;
269
        ostringstream oss;
270

  
271
        oss.str(Cluster::db_bootstrap);
272
        rc = db->exec(oss);
273

  
274
        oss.str(Cluster::host_db_bootstrap);
275
        rc += db->exec(oss);
256 276

  
257
        return db->exec(oss);
277
        oss.str(Cluster::datastore_db_bootstrap);
278
        rc += db->exec(oss);
279

  
280
        oss.str(Cluster::network_db_bootstrap);
281
        rc += db->exec(oss);
282

  
283
        return rc;
258 284
    };
259 285

  
260 286
    /**

Also available in: Unified diff