mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-23 05:04:56 +09:00
M #-: Move fed index check.
This commit is contained in:
1 file changed
+5
-5
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user