Skip to content

Commit 4d2682c

Browse files
authored
Deprecate MongoNamespace#COMMAND_COLLECTION_NAME (#1786)
JAVA-5943
1 parent 04996f0 commit 4d2682c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

driver-core/src/main/com/mongodb/MongoNamespace.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@
3737
public final class MongoNamespace {
3838
/**
3939
* The collection name in which to execute a command.
40+
* @deprecated there is no replacement for this constant, as it is only needed for the OP_QUERY wire protocol message, which has
41+
* been replaced by OP_MSG
4042
*/
43+
@Deprecated
4144
public static final String COMMAND_COLLECTION_NAME = "$cmd";
4245

4346
private static final Set<Character> PROHIBITED_CHARACTERS_IN_DATABASE_NAME =

0 commit comments

Comments
 (0)