Skip to content

Commit 5face2b

Browse files
author
Romain Slootmaekers
committed
Merge pull request #15 from openvstorage/07.00.09
changes for firmware 07.00.09
2 parents 490a16a + cfd4afe commit 5face2b

File tree

10 files changed

+154
-80
lines changed

10 files changed

+154
-80
lines changed

META

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- conf -*-
22

33
description = "Kinetic client"
4-
version = "0.0.9"
4+
version = "0.0.10"
55
exists_if = "kinetic.cmx,kinetic.cmi,kinetic.mli"
66
requires = "threads lwt lwt.unix cryptokit lwt_ssl ppx_deriving.show lwt_log"
77
archive(byte) = "kinetic.client.cma"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Kinetic OCaml Client
22
====================
33
This is an OCaml client for [Seagate's Kinetic drives](https://developers.seagate.com/display/KV/Kinetic+Open+Storage+Documentation+Wiki).
4-
Currently, it uses protocol version 3.1.0.
4+
Currently, it uses protocol version 3.1.1.
55

66

77
Installation

examples/test_it.ml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ type test_result =
1616

1717
let show_test_result = function
1818
| Ok -> "Ok"
19-
| Failed s -> Printf.sprintf "Failed(%S)" s
19+
| Failed s -> Printf.sprintf "Failed(%s)" s
2020
| Skipped -> "Skipped"
2121

2222
open Kinetic
@@ -381,17 +381,21 @@ let range_test client =
381381
fill client 1000 >>=? fun () ->
382382
K.get_key_range
383383
client
384-
"x" true "y" true false 20
384+
"x" true
385+
(Some ("y",true))
386+
false 20
385387
>>=? fun keys ->
386-
Lwt_io.printlf "[%s]\n%!" (String.concat "; " keys) >>= fun () ->
388+
Lwt_io.printlf "result = [%s] (len = %i)\n%!" (String.concat "; " keys) (List.length keys) >>= fun () ->
387389
assert (List.length keys = 20);
390+
let hd = List.hd keys in
391+
Lwt_io.printlf "head = %s\n" hd >>= fun () ->
388392
assert (List.hd keys= "x_00000");
389393
Lwt_result.return ()
390394

391395
let range_test_reverse client =
392396
fill client 1000 >>=? fun () ->
393397
(* note the order, which differs from the specs *)
394-
K.get_key_range client "x" true "y" true true 20 >>=? fun keys ->
398+
K.get_key_range client "x" true (Some("y",true)) true 20 >>=? fun keys ->
395399
Lwt_io.printlf "[%s]\n%!" (String.concat "; " keys) >>= fun () ->
396400
assert (List.length keys = 20);
397401
assert (List.hd keys= "x_00999");

0 commit comments

Comments
 (0)