Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CXXCBC-346: Support for maxTTL value of -1 for collection 'no expiry' #500

Merged
merged 2 commits into from Jan 11, 2024

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 couchbaselabs:main Jan 11, 2024
13 of 14 checks passed
@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
2 participants