<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:59:53 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-658] question about optime,timestamp and log</title>
                <link>https://jira.mongodb.org/browse/CXX-658</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;Hi,&lt;br/&gt;
1.I noticed that BSONElement had the _opTime() method in the early version to get an OpTime type from BSONElement  type (e.g. &quot;ts&quot; field in oplog), and now only timestamp() ,and Timestamp_t object could&apos;t change value.&lt;br/&gt;
     private:&lt;br/&gt;
        const uint32_t _seconds;&lt;br/&gt;
        const uint32_t _increment;&lt;/p&gt;

&lt;p&gt;2. the log util seems unable to use ?Could I use LOG() or Log() or something.&lt;/p&gt;

&lt;p&gt;thanks.&lt;/p&gt;</description>
                <environment></environment>
        <key id="227520">CXX-658</key>
            <summary>question about optime,timestamp and log</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="-1">Unassigned</assignee>
                                    <reporter username="inosql">nosqldb</reporter>
                        <labels>
                            <label>legacy-cxx</label>
                    </labels>
                <created>Fri, 28 Aug 2015 14:59:21 +0000</created>
                <updated>Wed, 11 Sep 2019 19:05:51 +0000</updated>
                            <resolved>Thu, 17 Sep 2015 16:32:13 +0000</resolved>
                                    <version>legacy-1.0.5</version>
                                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1017066" author="adam.midvidy" created="Fri, 28 Aug 2015 15:33:03 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=inosql&quot; class=&quot;user-hover&quot; rel=&quot;inosql&quot;&gt;inosql&lt;/a&gt;!&lt;/p&gt;

&lt;p&gt;For your first question, the original OpTime class was removed as its implementation was non-portable. We replaced it with Timestamp_t, which is simpler. Instead of mutating the Timestamp_t, you can just construct a new one with the desired value. Since the class is so trivial (a struct with 2 integers), the cost of doing this should be almost nothing.&lt;/p&gt;

&lt;p&gt;For your second question - we namespace the driver macros with MONGO_*, so the LOG macro is now MONGO_LOG in the legacy driver.&lt;/p&gt;

&lt;p&gt;Hope this helps - let me know if you have any further questions.&lt;/p&gt;

&lt;p&gt;Adam&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|hreb4f:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="628">Platform 8 08/28/15</customfieldvalue>
    <customfieldvalue id="673">Platform 9 (09/18/15)</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>