Skip to content

Commit

Permalink
api: make Call = Call17
Browse files Browse the repository at this point in the history
Closes #235
  • Loading branch information
oleg-jukovec committed Apr 28, 2023
1 parent bdf6496 commit 71a7652
Show file tree
Hide file tree
Showing 16 changed files with 194 additions and 347 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,6 @@ jobs:
make test
make testrace
- name: Run regression tests with call_17
run: |
make test TAGS="go_tarantool_call_17"
make testrace TAGS="go_tarantool_call_17"
- name: Run fuzzing tests
if: ${{ matrix.fuzzing }}
run: make fuzzing TAGS="go_tarantool_decimal_fuzzing"
Expand Down Expand Up @@ -189,14 +184,6 @@ jobs:
env:
TEST_TNT_SSL: ${{matrix.ssl}}

- name: Run regression tests with call_17
run: |
source tarantool-enterprise/env.sh
make test TAGS="go_tarantool_call_17"
make testrace TAGS="go_tarantool_call_17"
env:
TEST_TNT_SSL: ${{matrix.ssl}}

- name: Run fuzzing tests
if: ${{ matrix.fuzzing }}
run: make fuzzing TAGS="go_tarantool_decimal_fuzzing"
Expand Down Expand Up @@ -363,12 +350,6 @@ jobs:
make test
make testrace
- name: Run regression tests with call_17
run: |
cd "${SRCDIR}"
make test TAGS="go_tarantool_call_17"
make testrace TAGS="go_tarantool_call_17"
- name: Run fuzzing tests
if: ${{ matrix.fuzzing }}
run: |
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Versioning](http://semver.org/spec/v2.0.0.html) except to the first release.

- connection_pool renamed to pool (#239)
- Use msgpack/v5 instead of msgpack.v2 (#236)
- Call/NewCallRequest = Call17/NewCall17Request (#235)

### Removed

Expand Down
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ faster than other packages according to public benchmarks.
* [multi package](#multi-package)
* [pool package](#pool-package)
* [msgpack.v5](#msgpackv5)
* [Call = Call17](#call--call17)
* [Contributing](#contributing)
* [Alternative connectors](#alternative-connectors)

Expand Down Expand Up @@ -66,13 +67,7 @@ This allows us to introduce new features without losing backward compatibility.
```
go_tarantool_ssl_disable
```
2. To change the default `Call` behavior from `Call16` to `Call17`, you can use
the build tag:
```
go_tarantool_call_17
```
**Note:** In future releases, `Call17` may be used as default `Call` behavior.
3. To run fuzz tests with decimals, you can use the build tag:
2. To run fuzz tests with decimals, you can use the build tag:
```
go_tarantool_decimal_fuzzing
```
Expand Down Expand Up @@ -188,6 +183,13 @@ There are also changes in the logic that can lead to errors in the old code,
to achieve full compliance of behavior between `msgpack.v5` and `msgpack.v2`. So
we don't go this way. We use standard settings if it possible.

#### Call = Call17

Call requests uses `IPROTO_CALL` instead of `IPROTO_CALL_16`.

So now `Call` = `Call17` and `NewCallRequest` = `NewCall17Request`. A result
of the requests is an array instead of array of arrays.

## Contributing

See [the contributing guide](CONTRIBUTING.md) for detailed instructions on how
Expand Down
54 changes: 0 additions & 54 deletions call_16_test.go

This file was deleted.

54 changes: 0 additions & 54 deletions call_17_test.go

This file was deleted.

1 change: 1 addition & 0 deletions const.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const (
IdRequestCode = 73
WatchRequestCode = 74
UnwatchRequestCode = 75
CallRequestCode = Call17RequestCode

KeyCode = 0x00
KeySync = 0x01
Expand Down
8 changes: 0 additions & 8 deletions const_call_16.go

This file was deleted.

8 changes: 0 additions & 8 deletions const_call_17.go

This file was deleted.

69 changes: 0 additions & 69 deletions pool/call_16_test.go

This file was deleted.

69 changes: 0 additions & 69 deletions pool/call_17_test.go

This file was deleted.

Loading

0 comments on commit 71a7652

Please sign in to comment.