<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:58:11 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-97] C++ driver should allow GridFS slaveOk querying</title>
                <link>https://jira.mongodb.org/browse/CXX-97</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;Currently, C++ driver GridFS API does not support slaveOk. &lt;br/&gt;
Adding &quot;slaveOk&quot; boolean parameter with a &quot;false&quot; default value to GridFS::findFile and GridFS::list would be nice.&lt;br/&gt;
Then, it should be cached inside the resulting GridFile and used for subsequent file queries (GridFile::getChunk, GridFile::write).&lt;/p&gt;</description>
                <environment></environment>
        <key id="35948">CXX-97</key>
            <summary>C++ driver should allow GridFS slaveOk querying</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</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="9">Done</resolution>
                                        <assignee username="tyler@10gen.com">Tyler Brock</assignee>
                                    <reporter username="onyxmaster">Aristarkh Zagorodnikov</reporter>
                        <labels>
                            <label>cxxmove</label>
                            <label>gridfs</label>
                            <label>legacy-cxx</label>
                            <label>neweng</label>
                            <label>replicaset</label>
                            <label>slaveOk</label>
                    </labels>
                <created>Wed, 11 Apr 2012 09:22:33 +0000</created>
                <updated>Tue, 8 Jul 2014 15:25:58 +0000</updated>
                            <resolved>Wed, 2 Jul 2014 17:39:39 +0000</resolved>
                                                    <fixVersion>legacy-0.11.0</fixVersion>
                                    <component>API</component>
                                        <votes>1</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="646182" author="tyler@10gen.com" created="Wed, 2 Jul 2014 17:39:39 +0000"  >&lt;p&gt;merged&lt;/p&gt;</comment>
                            <comment id="646178" author="xgen-internal-githook" created="Wed, 2 Jul 2014 17:39:16 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;TylerBrock&apos;, u&apos;name&apos;: u&apos;Tyler Brock&apos;, u&apos;email&apos;: u&apos;tyler.brock@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CXX-97&quot; title=&quot;C++ driver should allow GridFS slaveOk querying&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CXX-97&quot;&gt;&lt;del&gt;CXX-97&lt;/del&gt;&lt;/a&gt; Enable read preference for gridfs querying&lt;br/&gt;
Branch: legacy&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/commit/069d9fefcca2b384be46d8ef8275f77cd91946b0&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/commit/069d9fefcca2b384be46d8ef8275f77cd91946b0&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="646051" author="tyler@10gen.com" created="Wed, 2 Jul 2014 16:18:36 +0000"  >&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/pull/111&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/pull/111&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="645862" author="acm" created="Wed, 2 Jul 2014 14:32:52 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=onyxmaster&quot; class=&quot;user-hover&quot; rel=&quot;onyxmaster&quot;&gt;onyxmaster&lt;/a&gt; -&lt;/p&gt;

&lt;p&gt;RE async: yes, we are thinking about it, but we do not have concrete plans at this point.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Andrew&lt;/p&gt;</comment>
                            <comment id="645466" author="onyxmaster" created="Wed, 2 Jul 2014 04:51:42 +0000"  >&lt;p&gt;Thanks for the response.&lt;br/&gt;
My proposed patch (&lt;a href=&quot;https://bitbucket.org/onyxmaster/mod_gridfs/src/f7d5e545e0cf0f84afe9597827a95e143e31e695/patches/gridfs?at=v0.3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://bitbucket.org/onyxmaster/mod_gridfs/src/f7d5e545e0cf0f84afe9597827a95e143e31e695/patches/gridfs?at=v0.3&lt;/a&gt;) handles ReadPreference also, although I understand it&apos;s a bit dated.&lt;/p&gt;

&lt;p&gt;I look forward to new C++ driver that would support all the bells and whistles for GridFS queries.&lt;/p&gt;

&lt;p&gt;As a side note, I wonder if there is an idea to have an async (epoll, etc.)-based driver. Currently nginx-gridfs module works too slow only because there&apos;s no async support. While rolling one&apos;s own &quot;driver&quot; (it only needs to support a subset of the protocol, only predetermined queries) is perfectly feasible for such specific case, I&apos;m unsure about what plans do you have on this matter.&lt;/p&gt;</comment>
                            <comment id="638938" author="tyler@10gen.com" created="Mon, 30 Jun 2014 17:36:00 +0000"  >&lt;p&gt;I know it has been a while &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=onyxmaster&quot; class=&quot;user-hover&quot; rel=&quot;onyxmaster&quot;&gt;onyxmaster&lt;/a&gt;, but we are looking at this now and want to keep you updated. Thank you for your patience.&lt;/p&gt;

&lt;p&gt;We definitely need to allow for secondary reads for GridFS but doesn&apos;t make sense for GridFile::write to do so as secondaries do not take writes.&lt;/p&gt;

&lt;p&gt;Since this pull request and change was proposed we have forked the C++ driver from the server and are working on adding improvements such as this one to the driver. I&apos;m going to try to add what feels like the same functionality but with ReadPreference (as that is how we do things now).&lt;/p&gt;
</comment>
                            <comment id="111866" author="onyxmaster" created="Fri, 20 Apr 2012 06:16:42 +0000"  >&lt;p&gt;I understand that, so I worked around by adding a source patch in &lt;a href=&quot;https://bitbucket.org/onyxmaster/mod_gridfs&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://bitbucket.org/onyxmaster/mod_gridfs&lt;/a&gt; =)&lt;/p&gt;</comment>
                            <comment id="111851" author="eliot" created="Fri, 20 Apr 2012 03:07:45 +0000"  >&lt;p&gt;We are definitely planning on doing this - just have a lot of things to get done.&lt;/p&gt;</comment>
                            <comment id="111714" author="onyxmaster" created="Thu, 19 Apr 2012 18:25:12 +0000"  >&lt;p&gt;On the other hand, this still might be useful for other applications if you intend to release C++ driver separately.&lt;/p&gt;</comment>
                            <comment id="111703" author="onyxmaster" created="Thu, 19 Apr 2012 17:55:34 +0000"  >&lt;p&gt;Well, it looks like I have to roll my own driver for mod_gridfs, feel free to close this issue.&lt;/p&gt;</comment>
                            <comment id="110039" author="onyxmaster" created="Sun, 15 Apr 2012 20:20:23 +0000"  >&lt;p&gt;Improved pull request a little bit to preserve parameter order.&lt;/p&gt;</comment>
                            <comment id="109019" author="onyxmaster" created="Thu, 12 Apr 2012 08:05:32 +0000"  >&lt;p&gt;I&apos;ve added a pull request that implements this feature: &lt;a href=&quot;https://github.com/mongodb/mongo/pull/210&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/pull/210&lt;/a&gt;.&lt;/p&gt;</comment>
                    </comments>
                    <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|hrfqhz:</customfieldvalue>

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