Remove getClusterTimeForReplicaSet() if possible

XMLWordPrintableJSON

    • Fully Compatible
    • Sharding 2020-09-21, Sharding 2020-10-05
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The getClusterTimeForReplicaSet() function returns a "clusterTime" of 0 if the mongod is not running in a replica set. However, now that the VectorClock is always present, even on standalones and in unittests where it is never ticked/advanced, it should be possible to remove the getClusterTimeForReplicaSet() function and its few uses, and just use the actual VectorClock clusterTime instead (since it should always be 0).

              Assignee:
              Kevin Pulo
              Reporter:
              Kevin Pulo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: