Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-615

Replace SafeMode with WriteConcern

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 1.6.1
    • Fix Version/s: 1.7
    • Component/s: None
    • Labels:
      None
    • 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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rstam Robert Stam
                Reporter:
                rstam Robert Stam
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: