Skip to content

Commit 93e45fc

Browse files
committed
Deprecate DB#getStats
JAVA-3032
1 parent e9f7444 commit 93e45fc

File tree

1 file changed

+2
-0
lines changed
  • driver-legacy/src/main/com/mongodb

1 file changed

+2
-0
lines changed

driver-legacy/src/main/com/mongodb/DB.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,9 @@ public Object eval(final String code, final Object... args) {
618618
* @return result of the execution
619619
* @throws MongoException if the operation failed
620620
* @mongodb.driver.manual reference/command/dbStats/ Database Stats
621+
* @deprecated Prefer {@link #command(DBObject)} to run the dbStats command
621622
*/
623+
@Deprecated
622624
public CommandResult getStats() {
623625
BsonDocument commandDocument = new BsonDocument("dbStats", new BsonInt32(1)).append("scale", new BsonInt32(1));
624626
return executeCommand(commandDocument);

0 commit comments

Comments
 (0)