Skip to content

Conversation

@DemetrisChr
Copy link
Contributor

Motivation

The server has added support for the maxTTL value of -1 which is used to denote 'no expiry'

Changes

  • Change the type of max_expiry in the collection management APIs (both core and public) from uint32_t to int32_t to allow setting it to -1. The server accepts values in the range [-1, 2,147,483,647] which can be represented by a 32-bit signed integer.
  • Return errc::invalid_argument when a value less than -1 is provided
  • Add tests for create_collection and update_collection with different values for max_expiry

@DemetrisChr DemetrisChr merged commit 3a42a61 into couchbase:main Jan 11, 2024
@DemetrisChr DemetrisChr deleted the CXXCBC-436-max-ttl branch January 11, 2024 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants