|
As part of SERVER-69603, the ensureCollectionDropped() function of src/mongo/db/s/resharding/resharding_data_copy_util.cpp was promoted to a generic sharding utility (sharding_ddl_util::ensureCollectionDroppedNoChangeEvent()) to drop both user and system collections.
As SERVER-71880 demonstrated, such approach was flawed, since the utility function contained a method of the local catalog that cannot be safely used outside the context of a resharding operation.
To avoid similar issues in the future,
- ensureCollectionDroppedNoChangeEvent() should be removed from sharding_ddl_util
- the original version of ensureCollectionDropped() should be reintroduced.
|