Skip to content

Conversation

@martin-g
Copy link
Member

@martin-g martin-g commented May 11, 2023

AVRO-3758

What is the purpose of the change

  • Simplification and removal of unsafe {} block usages

Verifying this change

  • This change is a trivial rework
  • The relevant tests are updated

Documentation

  • Does this pull request introduce a new feature? no

martin-g added 2 commits May 11, 2023 10:10
Use AtomicBool for apache_avro::util::SERDE_HUMAN_READABLE

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
Use AtomicUsize for apache_avro::util::MAX_ALLOCATION_BYTES

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
@martin-g martin-g merged commit b86c63b into master May 12, 2023
@martin-g martin-g deleted the avro-3758-use-atomic-types-instead-of-static-mut branch May 12, 2023 05:52
martin-g added a commit that referenced this pull request May 12, 2023
* AVRO-3758: [Rust] Use AtomicXyz types instead of static mutable ones

Use AtomicBool for apache_avro::util::SERDE_HUMAN_READABLE

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

* AVRO-3758: [Rust] Use AtomicXyz types instead of static mutable ones

Use AtomicUsize for apache_avro::util::MAX_ALLOCATION_BYTES

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

---------

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
(cherry picked from commit b86c63b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants