[CXX-896] Use chrono::duration for mongocxx::options::index::expire_after_seconds Created: 17/Apr/16  Updated: 11/Sep/19  Resolved: 18/May/16

Status: Closed
Project: C++ Driver
Component/s: API
Affects Version/s: 3.0.1
Fix Version/s: 3.0.2

Type: Task Priority: Minor - P4
Reporter: Allan Bazinet Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

In the same vein as CXX-879. Given the chrono facility available in any environment targeted by this driver, manually converting a human-readable duration to seconds expressed as an int32_t seems a bit quaint, so I'm curious if there would be value in using a chrono::duration to express index TTL values.



 Comments   
Comment by Githook User [ 18/May/16 ]

Author:

{u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@mongodb.com'}

Message: CXX-896 Use chrono for TTL expiration options
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/bbfcaa6497989de30d3e2beca30b9b0fae83b4e1

Comment by Andrew Morrow (Inactive) [ 12/May/16 ]

https://github.com/mongodb/mongo-cxx-driver/pull/485

Comment by Andrew Morrow (Inactive) [ 17/Apr/16 ]

alb Good catch, I agree that should be using chrono.

Generated at Wed Feb 07 22:00:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.