[CDRIVER-1342] Support new readConcern level "linearizable" Created: 22/Jun/16  Updated: 19/Oct/16  Resolved: 11/Aug/16

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.5.0

Type: New Feature Priority: Major - P3
Reporter: Rathi Gnanasekaran Assignee: Hannes Magnusson
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by DRIVERS-307 Support new readConcern level "linear... Closed
is depended on by PHPC-716 Support new readConcern level "linear... Closed
Epic Link: MongoDB 3.4 Support

 Description   

A linearizable read avoids returning reads from a "stale" primary (one that has already been superseded by a new primary but doesn't know it yet). It is important to note that readConcern level linearizable does not by itself produce linearizable reads; they must be issued in conjunction with w:majority writes to the same document(s) in order to be linearizable.

This feature is exposed as a new value for readConcern.level, "linearizable".



 Comments   
Comment by Githook User [ 11/Aug/16 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}

Message: CDRIVER-1342 Support new readConcern level "linearizable"
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/c76a75e39640a69302df8d0af8d4f2bf55e9eccb

Comment by A. Jesse Jiryu Davis [ 18/Jul/16 ]

Need to add below this:

#define MONGOC_READ_CONCERN_LEVEL_MAJORITY "majority"

... another line:

#define MONGOC_READ_CONCERN_LEVEL_LINEARIZABLE "linearizable"

And mention the constant in the docs.

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