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

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

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.5.0
    • Affects Version/s: None
    • Component/s: Sharding
    • None

      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.

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

              Created:
              Updated:
              Resolved: