Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-2295

[ChangeStream] options::change_stream::start_at_operation_time accept uses internal bsoncxx::types::b_timestamp in API

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 3.8.1
    • Affects Version/s: None
    • Component/s: None
    • Labels:

      There is a warning against using bsoncxx::types::b_timestamp in user code:

      > This BSON type is used internally by the MongoDB server - use by clients is discouraged.

      However the options::change_stream::start_at_operation_time API requires you to pass in this type as input. Please either:

      • Remove the warning from b_timestamp or
      • Use an std type like std::chrono::system_clock::time_point

      (second option seems better to me)

            Assignee:
            adrian.dole@mongodb.com Adrian Dole
            Reporter:
            puya@motionmetrics.com Puya Daravi
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: