[CSHARP-615] Replace SafeMode with WriteConcern Created: 27/Oct/12  Updated: 20/Mar/14  Resolved: 29/Oct/12

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: 1.6.1
Fix Version/s: 1.7

Type: Improvement Priority: Major - P3
Reporter: Robert Stam Assignee: Robert Stam
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to CSHARP-614 Change default WriteConcern behavior ... Closed
Backwards Compatibility: Major Change

 Description   

Different drivers have used some variation of "SafeMode" or "WriteConcern" to describe to what degree they want the results of an insert/update operation to be checked.

We are standardizing on WriteConcern across all drivers.

This requires some changes to the C# driver. The following classes will be renamed:

SafeMode => WriteConcern
SafeModeResult => WriteConcernResult
MongoSafeModeException => WriteConcernException

The old classes will be kept around for a few releases (but marked as Obsolete), and we are going to great lengths to keep the two sets of classes interoperable until such time as SafeMode is permanently removed.

In the short term this is slightly backward breaking because of the warnings introduced by marking things as Obsolete, as well as by minor behavior differences resulting from the changes. In the long term this is backward breaking because the classes/properties/methods with SafeMode in the name will eventually be removed.



 Comments   
Comment by auto [ 06/Nov/12 ]

Author:

{u'date': u'2012-11-02T15:48:16Z', u'email': u'robert@10gen.com', u'name': u'rstam'}

Message: CSHARP-614, CSHARP-615: better unit tests.

Conflicts:
Driver/Core/MongoConnectionStringBuilder.cs
DriverUnitTests/Core/MongoConnectionStringBuilderTests.cs
MongoDB.Driver/MongoUrlBuilder.cs
MongoDB.Driver/ReadPreference.cs
MongoDB.DriverUnitTests/GridFS/MongoGridFSSettingsTests.cs
MongoDB.DriverUnitTests/Jira/CSharp269Tests.cs
MongoDB.DriverUnitTests/Jira/CSharp471Tests.cs
MongoDB.DriverUnitTests/MongoCollectionSettingsTests.cs
MongoDB.DriverUnitTests/MongoDB.DriverUnitTests.csproj
MongoDB.DriverUnitTests/MongoDatabaseSettingsTests.cs
MongoDB.DriverUnitTests/MongoUrlBuilderTests.cs
MongoDB.DriverUnitTests/MongoUrlTests.cs
Branch: x2.0
https://github.com/mongodb/mongo-csharp-driver/commit/eaffcde68079a6641fb32c6dc5cb081de1ef4ce4

Comment by auto [ 06/Nov/12 ]

Author:

{u'date': u'2012-10-28T17:02:29Z', u'email': u'robert@10gen.com', u'name': u'rstam'}

Message: CSHARP-614, CSHARP-615: Added MongoClient and replaced SafeMode with WriteConcern and related changes.

Conflicts:
Driver/Core/MongoCollectionSettings.cs
Driver/Core/MongoConnectionStringBuilder.cs
DriverUnitTests/Core/MongoConnectionStringBuilderTests.cs
MongoDB.Driver/GridFS/MongoGridFS.cs
MongoDB.Driver/GridFS/MongoGridFSSettings.cs
MongoDB.Driver/MongoDB.Driver.csproj
MongoDB.Driver/MongoDatabase.cs
MongoDB.Driver/MongoDatabaseSettings.cs
MongoDB.Driver/MongoServer.cs
MongoDB.Driver/MongoServerSettings.cs
MongoDB.Driver/MongoUrl.cs
MongoDB.Driver/MongoUrlBuilder.cs
MongoDB.DriverUnitTests/Jira/CSharp231Tests.cs
Branch: x2.0
https://github.com/mongodb/mongo-csharp-driver/commit/c32cf97e0577458e68aba80c543d4e5fc8680167

Comment by auto [ 06/Nov/12 ]

Author:

{u'date': u'2012-11-02T15:48:16Z', u'email': u'robert@10gen.com', u'name': u'rstam'}

Message: CSHARP-614, CSHARP-615: better unit tests.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/4d353d47d2828c1f3cb393251e80c79538c7c71b

Comment by auto [ 29/Oct/12 ]

Author:

{u'date': u'2012-10-28T10:02:29-07:00', u'name': u'rstam', u'email': u'robert@10gen.com'}

Message: CSHARP-614, CSHARP-615: Added MongoClient and replaced SafeMode with WriteConcern and related changes.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/740c2488baa282da59815f074e9f4cf4accbcb27

Generated at Wed Feb 07 21:37:21 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.