Hi,

On 8 May 2015 at 15:24, Jordan Zimmerman <[email protected]> wrote:

> But that could’ve been done with just the new opcode of
> ZooDefs.OpCode.create2, right? I need to understand if I need a new Request
> class for the container feature or not.
>

It should work, the structs are the same except for the opcode. So for Java
this would be enough:

         h.setType(ZooDefs.OpCode.create2);
-        Create2Request request = new Create2Request();
+        CreateRequest request = new CreateRequest();
         Create2Response response = new Create2Response();

Similarly, for the C library you would have something like:

struct RequestHeader h = { get_xid(), ZOO_CREATE_OP };

instead of:

struct RequestHeader h = { get_xid(), ZOO_CREATE2_OP };


-rgs

Reply via email to