Skip to content

Commit 8cd364e

Browse files
committed
Avoid duplication
1 parent 7d6288d commit 8cd364e

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

test/kcas/test.ml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,8 @@ let test_stress n nb_loop =
198198

199199
(* test 5 *)
200200

201+
(** Various tests make accesses in random order to exercise the internal splay
202+
tree based transaction log handling. *)
201203
let in_place_shuffle array =
202204
let n = Array.length array in
203205
for i = 0 to n - 2 do
@@ -247,16 +249,6 @@ let test_presort_and_is_in_log_xt () =
247249

248250
let locs = Array.init n_locs (fun _ -> Loc.make 0) in
249251

250-
let in_place_shuffle array =
251-
let n = Array.length array in
252-
for i = 0 to n - 2 do
253-
let j = Random.int (n - i) + i in
254-
let t = array.(i) in
255-
array.(i) <- array.(j);
256-
array.(j) <- t
257-
done
258-
in
259-
260252
let thread () =
261253
let locs = Array.copy locs in
262254
Random.self_init ();

0 commit comments

Comments
 (0)