- 23 Jun, 2020 6 commits
-
-
Quanah Gibson-Mount authored
-
-
-
-
-
ldif_open_mem() is the fmemopen(3) equivalent of ldif_open() which opens an ldif steam from memory, rather than from a file.
-
- 22 Jun, 2020 5 commits
-
-
Quanah Gibson-Mount authored
-
-
The fallback to a straight Fisher-Yates shuffle needs to occur whenever the sum of the *remaining* weights is zero, or else the remaining records will not be reordered. Testing only once at the beginning covers the case when all weights are zero, and obviously no shuffling is needed when only one weight is zero; but other weight combinations are possible, such as (1, 0, 0).
-
Prior to this change, given two records of weight 1 the algorithm would return them in the order (0,1) with 100% probability instead of the desired 50%. This was due to an off-by-one error in the range test. srv_rand() returns a float in the range [0.0, 1.0[, so r is an integer in the range [0, total[. The correct probability for record 0 to be chosen is a[0].weight/total, not (a[0].weight+1)/total.
-
Ondřej Kuzník authored
-
- 21 Jun, 2020 6 commits
-
-
cn=config changes might cause slapi_plugins_used transition from 0 during the lifetime of operation (cn=config change or syncrepl) or a connection and we should be able to deal with that.
-
-
-
Quanah Gibson-Mount authored
-
-
Quanah Gibson-Mount authored
-
- 20 Jun, 2020 1 commit
-
-
Howard Chu authored
-
- 01 Jun, 2020 1 commit
-
-
Quanah Gibson-Mount authored
-
- 31 May, 2020 1 commit
-
-
Quanah Gibson-Mount authored
-
- 28 May, 2020 1 commit
-
-
- 27 May, 2020 1 commit
-
-
Quanah Gibson-Mount authored
-
- 26 May, 2020 2 commits
-
-
Quanah Gibson-Mount authored
-
Quanah Gibson-Mount authored
-
- 25 May, 2020 1 commit
-
-
Howard Chu authored
-
- 22 May, 2020 3 commits
-
-
-
-
Howard Chu authored
-
- 20 May, 2020 1 commit
-
-
Howard Chu authored
-
- 18 May, 2020 3 commits
-
-
Quanah Gibson-Mount authored
-
Quanah Gibson-Mount authored
-
Quanah Gibson-Mount authored
-
- 14 May, 2020 4 commits
-
-
Quanah Gibson-Mount authored
-
Quanah Gibson-Mount authored
-
Quanah Gibson-Mount authored
-
Ryan Tandy authored
-
- 10 May, 2020 1 commit
-
-
Ryan Tandy authored
-
- 08 May, 2020 2 commits
-
-
Howard Chu authored
-
Howard Chu authored
-
- 28 Apr, 2020 1 commit
-
-
Ryan Tandy authored
-