[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:
Related
related to SERVER-9072 Prepare machinery for parallel migrat... Closed
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: SERVER-9387 expose namespace name in aboutToDelete when logging diskloc deletes
Branch: master
https://github.com/mongodb/mongo/commit/57c7fa55d700497b0e95f16878499d8ffc330916

Generated at Thu Feb 08 03:20:15 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.