[GODRIVER-925] Snapshot should not be included for server versions > 4.0 Created: 04/Apr/19  Updated: 27/Oct/23  Resolved: 04/Apr/19

Status: Closed
Project: Go Driver
Component/s: CRUD, Options & Configuration
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Divjot Arora (Inactive) Assignee: Divjot Arora (Inactive)
Resolution: Works as Designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The snapshot option for find commands was deprecated in server version 4.0. The driver should not include the option in the command because the server errors otherwise.



 Comments   
Comment by Divjot Arora (Inactive) [ 04/Apr/19 ]

This came up when migrating mongoexport to the new driver. From a conversation with david.golden, mongoexport should not be using a hint on the _id index instead of using snapshot at all.

Comment by David Golden [ 04/Apr/19 ]

I disagree, following the "depend on the server to return errors" development mantra.

Generated at Thu Feb 08 08:35:16 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.