1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-20 10:50:08 +03:00

M #-: Move fed index check.

This commit is contained in:
Ruben S. Montero 2019-06-10 11:41:25 +02:00
parent 079d5d7d21
commit 6bcace061b
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -300,12 +300,12 @@ int FedReplicaManager::get_next_record(int zone_id, std::string& zedp,
if ( zs->last == zs->next )
{
zs->next = logdb->next_federated(zs->next);
}
if ( zs->next == UINT64_MAX ) //no new records
{
pthread_mutex_unlock(&mutex);
return -2;
}
if ( zs->next == UINT64_MAX ) //no new records
{
pthread_mutex_unlock(&mutex);
return -2;
}
int rc = logdb->get_log_record(zs->next, lr);