Skip to content

Commit 014b040

Browse files
committed
Deprecate DBCursor#showDiskLoc
JAVA-3027
1 parent 02a7f06 commit 014b040

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,9 @@ public DBCursor returnKey() {
414414
* @return {@code this} so calls can be chained
415415
* @mongodb.driver.manual reference/operator/meta/showDiskLoc/ $showDiskLoc
416416
* @since 2.12
417+
* @deprecated showDiskLoc has been deprecated in the MongoDB server. There is no replacement for it.
417418
*/
419+
@Deprecated
418420
public DBCursor showDiskLoc() {
419421
findOptions.getModifiers().put("$showDiskLoc", true);
420422
return this;

0 commit comments

Comments
 (0)