Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


IDIEP-34
Author
Sponsor
Created

 

Status
Status
colourGrey
titleDRAFT


Table of Contents

Motivation

Currentrly Currently transactions are not supported by thin client protocol. 

...

Add new operations to the thin client protocol:

NameCodeDescription
OP_TX_START4000Start a new transaction
OP_TX_END4001End the transaction

OP_TX_START message format

Request
byte

Concurrency control:

0 - OPTIMISTIC

1 - PESSIMISTIC

-1 - use server's default value

byte

Isolation level:

0 - READ_COMMITTED

1 - REPEATABLE_READ

2 - SERIALIZABLE

-1 - use server's default value

longTimeout (-1 - use server's default value)
intNumber of entries participating in transaction (may be approximate). 0 - default value.
stringlabel


Response

intUnique per client connection transaction id. This id should be returned as parameter with OP_TX_END message.

OP_TX_END message format

Request
int

Transaction id.

bool

Commit flag.


Empty response.

Server-side changes

...