소스 검색

Ticket 48158 - cleanAllRUV task limit not being enforced correctly

Bug Description:  The task limit check was only counting tasks that had
                  already begun the cleaning process.  If the task was waiting
                  for a replica to be online before it starting the cleaning
                  process, then task count was not incremented, and limit
                  check was essentially bypassed.

Fix Description:  Use the "pre-cleaned" rid list to determine the task count.
                  The pre-cleaned list is updated as soon a task request
                  comes in - not once the cleaning starts.

https://fedorahosted.org/389/ticket/48158

Reviwed by: nhosoi(Thanks!)
Mark Reynolds 10 년 전
부모
커밋
d774b19fe6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      ldap/servers/plugins/replication/repl5_replica_config.c

+ 1 - 1
ldap/servers/plugins/replication/repl5_replica_config.c

@@ -3459,7 +3459,7 @@ get_cleanruv_task_count()
 
    slapi_rwlock_wrlock(rid_lock);
    for(i = 0; i < CLEANRIDSIZ; i++){
-       if(cleaned_rids[i] != 0){
+       if(pre_cleaned_rids[i] != 0){
            count++;
        }
    }