Revision cc6cc460 src/raft/RaftManager.cc

View differences:

src/raft/RaftManager.cc
1176 1176
    Nebula& nd    = Nebula::instance();
1177 1177
    LogDB * logdb = nd.get_logdb();
1178 1178

  
1179
    FedReplicaManager * frm = nd.get_frm();
1180

  
1179 1181
    unsigned int lindex, lterm;
1180 1182

  
1181 1183
    std::ostringstream oss;
......
1202 1204
            << "<LOG_TERM>"  << lterm  << "</LOG_TERM>";
1203 1205
    }
1204 1206

  
1207
    if ( nd.is_federation_enabled() )
1208
    {
1209
        oss << "<FEDLOG_INDEX>" << frm->get_last_index() << "</FEDLOG_INDEX>";
1210
    }
1211
    else
1212
    {
1213
        oss << "<FEDLOG_INDEX>-1</FEDLOG_INDEX>";
1214
    }
1215

  
1205 1216
    oss << "</RAFT>";
1206 1217

  
1207 1218
	pthread_mutex_unlock(&mutex);

Also available in: Unified diff