Versions Compared

Key

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

...

TypeDescription
intLength of payload
shortOperation code
longRequest id
intCache id
byteflags (new "under transaction" flag with bitmask 0x02 introduced, to indicate that operation performed under transaction)modified
intTransaction id (present only if "under transaction" flag is set, i.e. if flags & 0x02 != 0)added


Server-side changes

On the server side, we need to have the ability to decouple transactions from threads. We can do this by using transaction suspend/resume methods. Suspend/resume methods are only implemented for optimistic transactions now, so we need to implement this mechanism for pessimistic transactions first.

...