Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-45030

Replace use of $currentDate with $$NOW in sessions_collection.cpp

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.3
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Sharding 2019-12-30, Sharding 2020-01-13

      $currentDate was deprecated under SERVER-42007. With this deprecation, mongod now logs the following message at server startup:

      2019-12-09T15:17:13.221-0500 W  WRITE    [LogicalSessionCacheRefresh] The $currentDate update operator is deprecated. As an alternative perform updates with an aggregation pipeline and either the 'NOW' or 'CLUSTER_TIME' system variables.
      

      As a replacement, we could use $$NOW within a $expr in the query part of the corresponding update.

            Assignee:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Reporter:
            james.wahlin@mongodb.com James Wahlin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: