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

XMLWordPrintableJSON

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

      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
              Reporter:
              Puya Daravi
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: