<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:58:24 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[CXX-171] C++ driver should support all Write Concern types</title>
                <link>https://jira.mongodb.org/browse/CXX-171</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;Right now, the C++ driver only supports NONE and NORMAL.&lt;br/&gt;
What about JOURNAL, FSYNC, REPLICA_SAFE, etc?  &lt;/p&gt;</description>
                <environment>All </environment>
        <key id="36943">CXX-171</key>
            <summary>C++ driver should support all Write Concern types</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="2" iconUrl="https://jira.mongodb.org/images/icons/priorities/critical.svg">Critical - P2</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="3">Duplicate</resolution>
                                        <assignee username="tyler@10gen.com">Tyler Brock</assignee>
                                    <reporter username="quackerjeff">Jeff Andrews</reporter>
                        <labels>
                            <label>cxxcopy</label>
                            <label>legacy-cxx</label>
                    </labels>
                <created>Mon, 23 Apr 2012 10:58:43 +0000</created>
                <updated>Thu, 13 Nov 2014 21:17:26 +0000</updated>
                            <resolved>Tue, 29 Apr 2014 15:41:20 +0000</resolved>
                                                    <fixVersion>legacy-0.9.0</fixVersion>
                                    <component>Implementation</component>
                                        <votes>3</votes>
                                    <watches>11</watches>
                                                                                                                <comments>
                            <comment id="566973" author="tyler@10gen.com" created="Tue, 29 Apr 2014 15:41:20 +0000"  >&lt;p&gt;This ticket is effectively subsumed by &lt;a href=&quot;https://jira.mongodb.org/browse/CXX-182&quot; title=&quot;Add support for Write Concern (outside of GLE)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CXX-182&quot;&gt;&lt;del&gt;CXX-182&lt;/del&gt;&lt;/a&gt; which will implement WriteConcern.&lt;/p&gt;</comment>
                            <comment id="239723" author="rudy" created="Mon, 14 Jan 2013 21:34:53 +0000"  >&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;Were using the C++ driver for MongoDB on Windows. &lt;br/&gt;
Are there any plans to get support for implementing that // TODO SAFE = 2 soon?&lt;/p&gt;
</comment>
                            <comment id="112525" author="quackerjeff" created="Mon, 23 Apr 2012 12:01:29 +0000"  >&lt;p&gt;Cool, the first method you mentioned is introduced in the 2.1.0 version, right?  We&apos;re only using &quot;stable&quot; releases right now (mongodb-linux-x86_64-v2.0-latest.tgz).  But, I shall remember that when the driver becomes available via download.&lt;br/&gt;
Thanks, Eliot!&lt;/p&gt;
</comment>
                            <comment id="112518" author="eliot" created="Mon, 23 Apr 2012 11:37:08 +0000"  >&lt;p&gt;You need to a getLastError with whatever options you want.&lt;/p&gt;

&lt;p&gt;Actually, there is also this method&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;        string getLastError(bool fsync = false, bool j = false, int w = 0, int wtimeout = 0);&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;that supports all the options.&lt;/p&gt;

&lt;p&gt;so you would do something like&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;connection.insert( &quot;test.foo&quot; , BSON( &quot;x&quot; &amp;lt;&amp;lt; 1 ) );&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;connection.getLastError( false , true , 2 , 0 );&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;But yes - leaving this open as we do need to add more helpers for WriteConcern&lt;/p&gt;</comment>
                            <comment id="112516" author="quackerjeff" created="Mon, 23 Apr 2012 11:31:37 +0000"  >&lt;p&gt;So, I have to issue a raw command to change the write concern?&lt;/p&gt;

&lt;p&gt;This is from the latest code...(dbclient.h)&lt;/p&gt;

&lt;p&gt;    /**&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;controls how much a clients cares about writes&lt;/li&gt;
	&lt;li&gt;default is NORMAL&lt;br/&gt;
     */&lt;br/&gt;
    enum WriteConcern 
{
        W_NONE = 0 , // TODO: not every connection type fully supports this
        W_NORMAL = 1
        // TODO SAFE = 2
    }
&lt;p&gt;;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;



&lt;p&gt;If I have to do it manually then fine, but I would still like to see the improvement in the C++ driver. &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/wink.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                            <comment id="112515" author="eliot" created="Mon, 23 Apr 2012 11:25:09 +0000"  >&lt;p&gt;You can do any of them using a raw getLastError command, what&apos;s missing is helpers.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="131125">CXX-182</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="56276">CXX-251</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrgpv3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>11146</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>