-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Catalog and Routing
-
1
We have at least 5 implementations of assertNoMovePrimaryInProgress:
- https://github.com/10gen/mongo/blob/7254b10335d718228b8cbe183d0c228a024bfae1/src/mongo/db/catalog/database_impl.cpp#L144
- https://github.com/10gen/mongo/blob/7254b10335d718228b8cbe183d0c228a024bfae1/src/mongo/db/catalog/drop_indexes.cpp#L403
- https://github.com/10gen/mongo/blob/7254b10335d718228b8cbe183d0c228a024bfae1/src/mongo/db/commands/create_indexes_cmd.cpp#L320
- https://github.com/10gen/mongo/blob/7254b10335d718228b8cbe183d0c228a024bfae1/src/mongo/db/s/migration_chunk_cloner_source_op_observer.cpp#L84
- https://github.com/10gen/mongo/blob/7254b10335d718228b8cbe183d0c228a024bfae1/src/mongo/db/catalog/coll_mod.cpp#L122
We should consolidate them.