Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-2114

MongoIndexManager always read indexes from primary

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Works as Designed
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Read Operations

    Description

      MongoIndexManager methods List and ListAsync don't use client read preference settings, always read list of indexes from primary:

      public override IAsyncCursor<BsonDocument> List(IClientSessionHandle session, CancellationToken cancellationToken = default(CancellationToken))
      {
          Ensure.IsNotNull(session, nameof(session));
          var operation = CreateListIndexesOperation();
          return _collection.ExecuteReadOperation(session, operation, ReadPreference.Primary, cancellationToken);
      }
      

      Attachments

        Activity

          People

            robert@mongodb.com Robert Stam
            ar7z1 Artem Zinenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: