Optimize databases retrieval in CheckMetdataConsistency command

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Sharding EMEA
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Instead of retrieving all existing databases from config server and then filter out the one for which the shard is not the primary we should directly retrieve only the databases we are interested in.

      https://github.com/10gen/mongo/blob/8db424cac47919863d14a998835e3b3de09044bb/src/mongo/db/s/shardsvr_check_metadata_consistency_command.cpp#L112-L125

            Assignee:
            Tommaso Tocci
            Reporter:
            Pol Pinol
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: