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

expose namespace name in aboutToDelete when logging a diskloc delete (for migrations)

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5.0
    • Component/s: Sharding
    • Labels:
      None

      Description

      When we delete a record on disk, we notify any active migrations by using an "aboutToDelete" callback, which calls "aboutToDeleteForSharding" and gives the DiskLoc which will be affected. However, if multiple migrations are active, it's not clear in which namespace the DiskLoc exists - NamespaceDetails is given, but this is the "value" side of the namespace map, the namespace name itself is not included, just the database.

      Since we have the namespace name at the time of aboutToDelete, we should just pass this the the sharding code to make multiple migrations simpler.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                greg_10gen Greg Studer
                Reporter:
                greg_10gen Greg Studer
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: