iproto: send IPROTO_WATCH sync number in IPROTO_EVENT packet
We don't use this functionality in net.box (sync number is always 0 for all watch/event packets), but other clients may actually use it. Closes #8393 @TarantoolBot document Title: Document that `IPROTO_EVENT` has sync number Initially the sync number sent by a client in an `IPROTO_WATCH` request was ignored and `IPROTO_EVENT` packet didn't have a sync number. There were complaints about it from users so we consider this to be a bug. Now the server sends the same sync number in an `IPROTO_EVENT` packet as the one sent by the client in the last corresponding `IPROTO_WATCH` request.
Showing
- changelogs/unreleased/gh-8393-iproto-watch-sync.md 4 additions, 0 deletionschangelogs/unreleased/gh-8393-iproto-watch-sync.md
- src/box/iproto.cc 6 additions, 5 deletionssrc/box/iproto.cc
- src/box/iproto_constants.h 3 additions, 2 deletionssrc/box/iproto_constants.h
- src/box/session.c 11 additions, 3 deletionssrc/box/session.c
- src/box/session.h 6 additions, 3 deletionssrc/box/session.h
- src/box/xrow.c 9 additions, 4 deletionssrc/box/xrow.c
- src/box/xrow.h 3 additions, 1 deletionsrc/box/xrow.h
- test/box-py/iproto.result 17 additions, 17 deletionstest/box-py/iproto.result
- test/box-py/iproto.test.py 13 additions, 11 deletionstest/box-py/iproto.test.py
Loading
Please register or sign in to comment