Remove stdx::thread workaround from ttl unit tests

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • QE 2025-10-27
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently ttl unit tests run TTL passes in separate threads.

      The comment says:

              // TTLMonitor::doTTLPass creates a new OperationContext, which cannot be done on the current
              // client because the OperationContext already exists.

      https://github.com/mongodb/mongo/blob/b3af211888d0c15841cdd09fb9e94aeab00e2e45/src/mongo/db/ttl/ttl_test.cpp#L288

       

      But it seems to be outdated, because now TTLTest creates one _opCtx and uses it throughout the test: 

      https://github.com/mongodb/mongo/blob/b3af211888d0c15841cdd09fb9e94aeab00e2e45/src/mongo/db/ttl/ttl_test.cpp#L108

            Assignee:
            Ivan Fefer
            Reporter:
            Ivan Fefer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: