[SERVER-9387] expose namespace name in aboutToDelete when logging a diskloc delete (for migrations) Created: 18/Apr/13 Updated: 11/Jul/16 Resolved: 18/Apr/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | None |
| Fix Version/s: | 2.5.0 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Greg Studer | Assignee: | Greg Studer |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Participants: | |||||||||
| 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. |
| Comments |
| Comment by auto [ 18/Apr/13 ] |
|
Author: {u'date': u'2013-04-18T22:15:07Z', u'name': u'Greg Studer', u'email': u'greg@10gen.com'}Message: |