Set the number of initial replicas to be the same as the min.

quorum in order not to penalize the case when all the initial replicas
are validated as good


git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@1831 a7169a2c-3604-0410-bc95-c702d8d87f7a
This commit is contained in:
gombasg 2008-09-15 12:49:18 +00:00 committed by Adam Visegradi
parent 409fa04e77
commit 3c1b433c20
1 changed files with 2 additions and 6 deletions

View File

@ -826,13 +826,9 @@ static void fill_wu_params(const DC_Workunit *wu, struct wu_params *params)
if (params->min_quorum < 1)
params->min_quorum = 1;
/* Calculate with logarithmic error */
if (params->min_quorum == 1)
params->target_nresults = 1;
else
params->target_nresults = params->min_quorum +
(int)log(params->min_quorum);
params->target_nresults = params->min_quorum;
/* Calculate with logarithmic error */
params->max_error_results = params->target_nresults +
(int)log(params->min_quorum + 2) + 1;
params->max_total_results = (params->target_nresults +