Commit c0ca261
streams: interactive transactions and support
The main purpose of streams is transactions via iproto.
Since v. 2.10.0, Tarantool supports streams and
interactive transactions over them. Each stream
can start its own transaction, so they allows
multiplexing several transactions over one connection.
API for this feature is the following:
* `NewStream()` method to create a stream object for `Connection`
and `NewStream(userMode Mode)` method to create a stream object
for `ConnectionPool`
* stream object `Stream` with `Do()` method and
new request objects to work with stream,
`BeginRequest` - start transaction via iproto stream;
`CommitRequest` - commit transaction;
`RollbackRequest` - rollback transaction.
Closes #1011 parent 1e37dc2 commit c0ca261
File tree
19 files changed
+1816
-33
lines changed- connection_pool
- multi
- test_helpers
19 files changed
+1816
-33
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
143 | 144 | | |
144 | 145 | | |
145 | 146 | | |
| 147 | + | |
| 148 | + | |
146 | 149 | | |
147 | 150 | | |
148 | 151 | | |
| |||
528 | 531 | | |
529 | 532 | | |
530 | 533 | | |
531 | | - | |
| 534 | + | |
| 535 | + | |
532 | 536 | | |
533 | | - | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
534 | 543 | | |
535 | | - | |
| 544 | + | |
536 | 545 | | |
537 | 546 | | |
538 | 547 | | |
539 | 548 | | |
540 | | - | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
541 | 555 | | |
542 | 556 | | |
543 | 557 | | |
| |||
555 | 569 | | |
556 | 570 | | |
557 | 571 | | |
558 | | - | |
| 572 | + | |
559 | 573 | | |
560 | 574 | | |
561 | 575 | | |
| |||
869 | 883 | | |
870 | 884 | | |
871 | 885 | | |
872 | | - | |
| 886 | + | |
873 | 887 | | |
874 | 888 | | |
875 | 889 | | |
| |||
882 | 896 | | |
883 | 897 | | |
884 | 898 | | |
885 | | - | |
| 899 | + | |
886 | 900 | | |
887 | 901 | | |
888 | 902 | | |
889 | 903 | | |
890 | 904 | | |
891 | 905 | | |
892 | | - | |
| 906 | + | |
893 | 907 | | |
894 | 908 | | |
895 | 909 | | |
| |||
906 | 920 | | |
907 | 921 | | |
908 | 922 | | |
909 | | - | |
| 923 | + | |
910 | 924 | | |
911 | 925 | | |
912 | 926 | | |
| |||
1095 | 1109 | | |
1096 | 1110 | | |
1097 | 1111 | | |
1098 | | - | |
| 1112 | + | |
1099 | 1113 | | |
1100 | 1114 | | |
1101 | 1115 | | |
| |||
1121 | 1135 | | |
1122 | 1136 | | |
1123 | 1137 | | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
544 | 544 | | |
545 | 545 | | |
546 | 546 | | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
547 | 561 | | |
548 | 562 | | |
549 | 563 | | |
| |||
0 commit comments