Revision 50d0a6b4 src/raft/FedReplicaManager.cc

View differences:

src/raft/FedReplicaManager.cc
24 24

  
25 25
const char * FedReplicaManager::table = "fed_logdb";
26 26

  
27
const char * FedReplicaManager::db_names = "log_index, sql";
27
const char * FedReplicaManager::db_names = "log_index, sqlcmd";
28 28

  
29 29
const char * FedReplicaManager::db_bootstrap = "CREATE TABLE IF NOT EXISTS "
30
        "fed_logdb (log_index INTEGER PRIMARY KEY, sql MEDIUMTEXT)";
30
        "fed_logdb (log_index INTEGER PRIMARY KEY, sqlcmd MEDIUMTEXT)";
31 31

  
32 32
const time_t FedReplicaManager::xmlrpc_timeout_ms = 10000;
33 33

  
......
355 355

  
356 356
    single_cb<std::string> cb;
357 357

  
358
    oss << "SELECT sql FROM fed_logdb WHERE log_index = " << index;
358
    oss << "SELECT sqlcmd FROM fed_logdb WHERE log_index = " << index;
359 359

  
360 360
    cb.set_callback(&sql);
361 361

  
......
394 394

  
395 395
    single_cb<unsigned int> cb;
396 396

  
397
    oss << "SELECT sql FROM fed_logdb WHERE log_index = -1";
397
    oss << "SELECT sqlcmd FROM fed_logdb WHERE log_index = -1";
398 398

  
399 399
    cb.set_callback(&index);
400 400

  

Also available in: Unified diff