Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 625158 | Differences between
and this patch

Collapse All | Expand All

(-)tokumx-enterprise-2.0.2.ORIG/src/mongo/db/client_load.cpp (-1 / +1 lines)
Lines 74-80 Link Here
74
    }
74
    }
75
75
76
    bool Client::loadInProgress() const {
76
    bool Client::loadInProgress() const {
77
        return _loadInfo;
77
        return bool(_loadInfo);
78
    }
78
    }
79
79
80
} // namespace mongo
80
} // namespace mongo
(-)tokumx-enterprise-2.0.2.ORIG/src/mongo/db/collection_map.h (-1 / +1 lines)
Lines 66-72 Link Here
66
        // which must succeed, by the first invariant.
66
        // which must succeed, by the first invariant.
67
        Collection *getCollection(const StringData &ns);
67
        Collection *getCollection(const StringData &ns);
68
68
69
        bool allocated() const { return _metadb; }
69
        bool allocated() const { return bool(_metadb); }
70
70
71
        void getNamespaces( list<string>& tofill );
71
        void getNamespaces( list<string>& tofill );
72
72
(-)tokumx-enterprise-2.0.2.ORIG/src/mongo/db/ops/query.cpp (-1 / +1 lines)
Lines 635-641 Link Here
635
        shared_ptr<ExplainRecordingStrategy> ret
635
        shared_ptr<ExplainRecordingStrategy> ret
636
        ( new SimpleCursorExplainStrategy( ancillaryInfo, _cursor ) );
636
        ( new SimpleCursorExplainStrategy( ancillaryInfo, _cursor ) );
637
        ret->notePlan( queryPlan.valid() && queryPlan.scanAndOrderRequired,
637
        ret->notePlan( queryPlan.valid() && queryPlan.scanAndOrderRequired,
638
                       queryPlan.keyFieldsOnly );
638
                       bool(queryPlan.keyFieldsOnly) );
639
        return ret;
639
        return ret;
640
    }
640
    }
641
641
(-)tokumx-enterprise-2.0.2.ORIG/src/mongo/db/pipeline/document_source_sort.cpp (-1 / +1 lines)
Lines 106-112 Link Here
106
    bool DocumentSourceSort::coalesce(const intrusive_ptr<DocumentSource> &pNextSource) {
106
    bool DocumentSourceSort::coalesce(const intrusive_ptr<DocumentSource> &pNextSource) {
107
        if (!limitSrc) {
107
        if (!limitSrc) {
108
            limitSrc = dynamic_cast<DocumentSourceLimit*>(pNextSource.get());
108
            limitSrc = dynamic_cast<DocumentSourceLimit*>(pNextSource.get());
109
            return limitSrc; // false if next is not a $limit
109
            return bool(limitSrc); // false if next is not a $limit
110
        }
110
        }
111
        else {
111
        else {
112
            return limitSrc->coalesce(pNextSource);
112
            return limitSrc->coalesce(pNextSource);
(-)tokumx-enterprise-2.0.2.ORIG/src/mongo/db/queryoptimizercursorimpl.cpp (-1 / +1 lines)
Lines 370-376 Link Here
370
370
371
            // The query plan must have a matcher.  The matcher's constructor performs some aspects
371
            // The query plan must have a matcher.  The matcher's constructor performs some aspects
372
            // of query validation that should occur before a cursor is returned.
372
            // of query validation that should occur before a cursor is returned.
373
            fassert( 16449, singlePlan->matcher() );
373
            fassert( 16449, bool(singlePlan->matcher()) );
374
374
375
            if ( needMatcher ) {
375
            if ( needMatcher ) {
376
                single->setMatcher( singlePlan->matcher() );
376
                single->setMatcher( singlePlan->matcher() );
(-)tokumx-enterprise-2.0.2.ORIG/src/mongo/db/query_optimizer_internal.cpp (-3 / +3 lines)
Lines 234-240 Link Here
234
        // The query plan must have a matcher.  The matcher's constructor performs some aspects
234
        // The query plan must have a matcher.  The matcher's constructor performs some aspects
235
        // of query validation that should occur as part of this class's init() if not handled
235
        // of query validation that should occur as part of this class's init() if not handled
236
        // already.
236
        // already.
237
        fassert( 16249, queryPlan().matcher() );
237
        fassert( 16249, bool(queryPlan().matcher()) );
238
        
238
        
239
        // TODO This violates the current Cursor interface abstraction, but for now it's simpler to keep our own set of
239
        // TODO This violates the current Cursor interface abstraction, but for now it's simpler to keep our own set of
240
        // dups rather than avoid poisoning the cursor's dup set with unreturned documents.  Deduping documents
240
        // dups rather than avoid poisoning the cursor's dup set with unreturned documents.  Deduping documents
Lines 257-263 Link Here
257
        _explainPlanInfo.reset( new ExplainPlanInfo() );
257
        _explainPlanInfo.reset( new ExplainPlanInfo() );
258
        _explainPlanInfo->notePlan( *_c,
258
        _explainPlanInfo->notePlan( *_c,
259
                                    queryPlan().scanAndOrderRequired(),
259
                                    queryPlan().scanAndOrderRequired(),
260
                                    queryPlan().keyFieldsOnly() );
260
                                    bool(queryPlan().keyFieldsOnly()) );
261
        return _explainPlanInfo;
261
        return _explainPlanInfo;
262
    }
262
    }
263
263
Lines 1226-1232 Link Here
1226
                _explainPlanInfo.reset( new ExplainPlanInfo() );
1226
                _explainPlanInfo.reset( new ExplainPlanInfo() );
1227
                _explainPlanInfo->notePlan( *_c,
1227
                _explainPlanInfo->notePlan( *_c,
1228
                                            _queryPlan->scanAndOrderRequired(),
1228
                                            _queryPlan->scanAndOrderRequired(),
1229
                                           _queryPlan->keyFieldsOnly() );
1229
                                           bool(_queryPlan->keyFieldsOnly()) );
1230
                shared_ptr<ExplainClauseInfo> clauseInfo( new ExplainClauseInfo() );
1230
                shared_ptr<ExplainClauseInfo> clauseInfo( new ExplainClauseInfo() );
1231
                clauseInfo->addPlanInfo( _explainPlanInfo );
1231
                clauseInfo->addPlanInfo( _explainPlanInfo );
1232
                _mps->addClauseInfo( clauseInfo );
1232
                _mps->addClauseInfo( clauseInfo );
(-)tokumx-enterprise-2.0.2.ORIG/src/mongo/db/query_plan_summary.h (-1 / +1 lines)
Lines 35-41 Link Here
35
         * The 'fieldRangeMulti' attribute is required, and its presence indicates the object has
35
         * The 'fieldRangeMulti' attribute is required, and its presence indicates the object has
36
         * been configured with a query plan.
36
         * been configured with a query plan.
37
         */
37
         */
38
        bool valid() const { return fieldRangeSetMulti; }
38
        bool valid() const { return bool(fieldRangeSetMulti); }
39
39
40
        // A description of the valid values for the fields of a query, in the context of a multikey
40
        // A description of the valid values for the fields of a query, in the context of a multikey
41
        // index or in memory sort.
41
        // index or in memory sort.

Return to bug 625158