1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-02-27 13:57:23 +03:00

F #2143: Filling function reset_index

This commit is contained in:
juanmont 2018-06-21 14:53:46 +02:00
parent f3f64f493e
commit 16682a205e

View File

@ -1291,5 +1291,16 @@ std::string& RaftManager::to_xml(std::string& raft_xml)
void RaftManager::reset_index(int follower_id)
{
//TODO
std::map<int, unsigned int>::iterator next_it;
pthread_mutex_lock(&mutex);
next_it = next.find(follower_id);
if ( next_it != next.end() )
{
next_it->second = commit;
}
pthread_mutex_unlock(&mutex);
}