Core Server
  1. Core Server
  2. SERVER-3900

Should indexes automatically upgrade to "v1" on a replication initial sync / resync?

    Details

    • Backport:
      Done
    • Operating System:
      ALL
    • # Replies:
      13
    • Last comment by Customer:
      false

      Description

      If index is explicitly v:0 it will be created as that rather than v:1 on the new slave.

        Activity

        Hide
        Dwight Merriman
        added a comment -

        wonder if one couldn't just reindex each collection. that might even be faster.

        by the way - what does compact() do?

        Show
        Dwight Merriman
        added a comment - wonder if one couldn't just reindex each collection. that might even be faster. by the way - what does compact() do?
        Hide
        Kristina Chodorow (Inactive)
        added a comment -

        It looks like compact upgrades the indexes.

        Show
        Kristina Chodorow (Inactive)
        added a comment - It looks like compact upgrades the indexes.
        Hide
        Eliot Horowitz
        added a comment -

        Ok - lets go with auto upgrading on sync.
        Is that what is not in master and v2.0?
        If so - can just resolve.

        Show
        Eliot Horowitz
        added a comment - Ok - lets go with auto upgrading on sync. Is that what is not in master and v2.0? If so - can just resolve.
        Hide
        Kristina Chodorow (Inactive)
        added a comment -

        It is in master but hasn't been backported to 2.0. Let me know if you'd like me to do that backport.

        Show
        Kristina Chodorow (Inactive)
        added a comment - It is in master but hasn't been backported to 2.0. Let me know if you'd like me to do that backport.
        Hide
        auto
        added a comment -

        Author:

        {u'login': u'kchodorow', u'name': u'Kristina', u'email': u'kristina@10gen.com'}

        Message: upgrade indexes on resync SERVER-3900
        Branch: v2.0
        https://github.com/mongodb/mongo/commit/fec06cfe915a53e5e53cd2b8e114c99814fbe436

        Show
        auto
        added a comment - Author: {u'login': u'kchodorow', u'name': u'Kristina', u'email': u'kristina@10gen.com'} Message: upgrade indexes on resync SERVER-3900 Branch: v2.0 https://github.com/mongodb/mongo/commit/fec06cfe915a53e5e53cd2b8e114c99814fbe436

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Days since reply:
              2 years, 29 weeks, 5 days ago
              Date of 1st Reply: