View | Details | Raw Unified | Return to bug 220613 | Differences between
and this patch

Collapse All | Expand All

(-)devel/pcre/Makefile (-6 / +3 lines)
Lines 2-14 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	pcre
4
PORTNAME=	pcre
5
PORTVERSION=	8.40
5
PORTVERSION=	8.42
6
PORTREVISION=	1
7
CATEGORIES=	devel
6
CATEGORIES=	devel
8
MASTER_SITES=	SF \
7
MASTER_SITES=	https://ftp.pcre.org/pub/pcre/ \
9
		ftp://ftp.csx.cam.ac.uk/pub/software/programming/${PORTNAME}/ \
8
		SF
10
		ftp://ftp.fu-berlin.de/unix/misc/${PORTNAME}/ \
11
		ftp://ftp.tin.org/pub/libs/${PORTNAME}/
12
9
13
MAINTAINER=	adamw@FreeBSD.org
10
MAINTAINER=	adamw@FreeBSD.org
14
COMMENT=	Perl Compatible Regular Expressions library
11
COMMENT=	Perl Compatible Regular Expressions library
(-)devel/pcre/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1485619818
1
TIMESTAMP = 1521638562
2
SHA256 (pcre-8.40.tar.bz2) = 00e27a29ead4267e3de8111fcaa59b132d0533cdfdbdddf4b0604279acbcf4f4
2
SHA256 (pcre-8.42.tar.bz2) = 2cd04b7c887808be030254e8d77de11d3fe9d4505c39d4b15d2664ffe8bf9301
3
SIZE (pcre-8.40.tar.bz2) = 1560119
3
SIZE (pcre-8.42.tar.bz2) = 1570171
(-)devel/pcre/pkg-plist (-4 / +4 lines)
Lines 10-24 Link Here
10
lib/libpcre.a
10
lib/libpcre.a
11
lib/libpcre.so
11
lib/libpcre.so
12
lib/libpcre.so.1
12
lib/libpcre.so.1
13
lib/libpcre.so.1.2.8
13
lib/libpcre.so.1.2.10
14
lib/libpcre16.a
14
lib/libpcre16.a
15
lib/libpcre16.so
15
lib/libpcre16.so
16
lib/libpcre16.so.0
16
lib/libpcre16.so.0
17
lib/libpcre16.so.0.2.8
17
lib/libpcre16.so.0.2.10
18
lib/libpcre32.a
18
lib/libpcre32.a
19
lib/libpcre32.so
19
lib/libpcre32.so
20
lib/libpcre32.so.0
20
lib/libpcre32.so.0
21
lib/libpcre32.so.0.0.8
21
lib/libpcre32.so.0.0.10
22
lib/libpcrecpp.a
22
lib/libpcrecpp.a
23
lib/libpcrecpp.so
23
lib/libpcrecpp.so
24
lib/libpcrecpp.so.0
24
lib/libpcrecpp.so.0
Lines 26-32 Link Here
26
lib/libpcreposix.a
26
lib/libpcreposix.a
27
lib/libpcreposix.so
27
lib/libpcreposix.so
28
lib/libpcreposix.so.0
28
lib/libpcreposix.so.0
29
lib/libpcreposix.so.0.0.4
29
lib/libpcreposix.so.0.0.6
30
libdata/pkgconfig/libpcre.pc
30
libdata/pkgconfig/libpcre.pc
31
libdata/pkgconfig/libpcre16.pc
31
libdata/pkgconfig/libpcre16.pc
32
libdata/pkgconfig/libpcre32.pc
32
libdata/pkgconfig/libpcre32.pc
(-)databases/mongodb32/files/patch-pcre (+311 lines)
Line 0 Link Here
1
From 18f4c63869a32426bd33235a8cf51f06809a1b6b Mon Sep 17 00:00:00 2001
2
From: Steven Green <steven@greenius.co.uk>
3
Date: Tue, 22 Aug 2017 13:08:48 -0400
4
Subject: [PATCH] SERVER-30166 Replace string with explicit std::string.
5
 Enables compulation when using --use-system-pcre which presusably used to do
6
 'using std::string' in an earlier version of pcre
7
8
Closes #1167
9
10
Signed-off-by: Mark Benvenuto <mark.benvenuto@mongodb.com>
11
(cherry picked from commit b7cebf82bc5e5572308cc3a3fb958a825db91498)
12
---
13
 src/mongo/db/dbwebserver.cpp                       |   1 +
14
 src/mongo/db/matcher/expression_leaf.cpp           |   4 +-
15
 src/mongo/db/repl/master_slave.cpp                 |  41 ++--
16
 .../sharding_catalog_create_database_test.cpp      | 216 +++++++++++++++++++++
17
 src/mongo/shell/bench.cpp                          |  14 +-
18
 src/mongo/util/net/miniwebserver.cpp               |   1 +
19
 6 files changed, 248 insertions(+), 29 deletions(-)
20
 create mode 100644 src/mongo/s/catalog/sharding_catalog_create_database_test.cpp
21
22
diff --git a/src/mongo/db/dbwebserver.cpp b/src/mongo/db/dbwebserver.cpp
23
index bee10b95a5b..055ce27aacf 100644
24
--- src/mongo/db/dbwebserver.cpp
25
+++ src/mongo/db/dbwebserver.cpp
26
@@ -67,6 +67,7 @@
27
 namespace mongo {
28
 
29
 using std::map;
30
+using std::string;
31
 using std::stringstream;
32
 using std::vector;
33
 
34
diff --git a/src/mongo/db/matcher/expression_leaf.cpp b/src/mongo/db/matcher/expression_leaf.cpp
35
index cfcd3d03591..5b658640578 100644
36
--- src/mongo/db/matcher/expression_leaf.cpp
37
+++ src/mongo/db/matcher/expression_leaf.cpp
38
@@ -200,7 +200,7 @@ void ComparisonMatchExpression::debugString(StringBuilder& debug, int level) con
39
 }
40
 
41
 void ComparisonMatchExpression::toBSON(BSONObjBuilder* out) const {
42
-    string opString = "";
43
+    std::string opString = "";
44
     switch (matchType()) {
45
         case LT:
46
             opString = "$lt";
47
@@ -880,7 +880,7 @@ void BitTestMatchExpression::debugString(StringBuilder& debug, int level) const
48
 }
49
 
50
 void BitTestMatchExpression::toBSON(BSONObjBuilder* out) const {
51
-    string opString = "";
52
+    std::string opString = "";
53
 
54
     switch (matchType()) {
55
         case BITS_ALL_SET:
56
diff --git a/src/mongo/shell/bench.cpp b/src/mongo/shell/bench.cpp
57
index d7503c4d689..3a60f351758 100644
58
--- src/mongo/shell/bench.cpp
59
+++ src/mongo/shell/bench.cpp
60
@@ -674,7 +674,7 @@ void BenchRunWorker::generateLoadOnConnection(DBClientBase* conn) {
61
     invariant(bsonTemplateEvaluator.setId(_id) == BsonTemplateEvaluator::StatusSuccess);
62
 
63
     if (_config->username != "") {
64
-        string errmsg;
65
+        std::string errmsg;
66
         if (!conn->auth("admin", _config->username, _config->password, errmsg)) {
67
             uasserted(15931, "Authenticating to connection for _benchThread failed: " + errmsg);
68
         }
69
@@ -920,7 +920,7 @@ void BenchRunWorker::generateLoadOnConnection(DBClientBase* conn) {
70
 
71
                             if (!result["err"].eoo() && result["err"].type() == String &&
72
                                 (_config->throwGLE || op.throwGLE))
73
-                                throw DBException((string) "From benchRun GLE" +
74
+                                throw DBException((std::string) "From benchRun GLE" +
75
                                                       causedBy(result["err"].String()),
76
                                                   result["code"].eoo() ? 0 : result["code"].Int());
77
                         }
78
@@ -987,7 +987,7 @@ void BenchRunWorker::generateLoadOnConnection(DBClientBase* conn) {
79
 
80
                             if (!result["err"].eoo() && result["err"].type() == String &&
81
                                 (_config->throwGLE || op.throwGLE))
82
-                                throw DBException((string) "From benchRun GLE" +
83
+                                throw DBException((std::string) "From benchRun GLE" +
84
                                                       causedBy(result["err"].String()),
85
                                                   result["code"].eoo() ? 0 : result["code"].Int());
86
                         }
87
@@ -1035,7 +1035,7 @@ void BenchRunWorker::generateLoadOnConnection(DBClientBase* conn) {
88
 
89
                             if (!result["err"].eoo() && result["err"].type() == String &&
90
                                 (_config->throwGLE || op.throwGLE))
91
-                                throw DBException((string) "From benchRun GLE " +
92
+                                throw DBException((std::string) "From benchRun GLE " +
93
                                                       causedBy(result["err"].String()),
94
                                                   result["code"].eoo() ? 0 : result["code"].Int());
95
                         }
96
@@ -1136,7 +1136,7 @@ void BenchRunWorker::run() {
97
     try {
98
         std::unique_ptr<DBClientBase> conn(_config->createConnection());
99
         if (!_config->username.empty()) {
100
-            string errmsg;
101
+            std::string errmsg;
102
             if (!conn->auth("admin", _config->username, _config->password, errmsg)) {
103
                 uasserted(15932, "Authenticating to connection for benchThread failed: " + errmsg);
104
             }
105
@@ -1168,7 +1168,7 @@ void BenchRunner::start() {
106
         std::unique_ptr<DBClientBase> conn(_config->createConnection());
107
         // Must authenticate to admin db in order to run serverStatus command
108
         if (_config->username != "") {
109
-            string errmsg;
110
+            std::string errmsg;
111
             if (!conn->auth("admin", _config->username, _config->password, errmsg)) {
112
                 uasserted(16704,
113
                           str::stream()
114
@@ -1204,7 +1204,7 @@ void BenchRunner::stop() {
115
     {
116
         std::unique_ptr<DBClientBase> conn(_config->createConnection());
117
         if (_config->username != "") {
118
-            string errmsg;
119
+            std::string errmsg;
120
             // this can only fail if admin access was revoked since start of run
121
             if (!conn->auth("admin", _config->username, _config->password, errmsg)) {
122
                 uasserted(16705,
123
diff --git a/src/mongo/util/net/miniwebserver.cpp b/src/mongo/util/net/miniwebserver.cpp
124
index fc86f95b24f..369f23f136a 100644
125
--- src/mongo/util/net/miniwebserver.cpp
126
+++ src/mongo/util/net/miniwebserver.cpp
127
@@ -43,6 +43,7 @@ namespace mongo {
128
 
129
 using std::shared_ptr;
130
 using std::endl;
131
+using std::string;
132
 using std::stringstream;
133
 using std::vector;
134
 
135
--- src/mongo/db/repl/master_slave.cpp.orig
136
+++ src/mongo/db/repl/master_slave.cpp
137
@@ -161,7 +161,7 @@
138
 
139
     BSONObjBuilder dbsNextPassBuilder;
140
     int n = 0;
141
-    for (set<string>::iterator i = addDbNextPass.begin(); i != addDbNextPass.end(); i++) {
142
+    for (set<std::string>::iterator i = addDbNextPass.begin(); i != addDbNextPass.end(); i++) {
143
         n++;
144
         dbsNextPassBuilder.appendBool(*i, 1);
145
     }
146
@@ -170,7 +170,8 @@
147
 
148
     BSONObjBuilder incompleteCloneDbsBuilder;
149
     n = 0;
150
-    for (set<string>::iterator i = incompleteCloneDbs.begin(); i != incompleteCloneDbs.end(); i++) {
151
+    for (set<std::string>::iterator i = incompleteCloneDbs.begin(); i != incompleteCloneDbs.end();
152
+         i++) {
153
         n++;
154
         incompleteCloneDbsBuilder.appendBool(*i, 1);
155
     }
156
@@ -181,7 +182,7 @@
157
 }
158
 
159
 void ReplSource::ensureMe(OperationContext* txn) {
160
-    string myname = getHostName();
161
+    std::string myname = getHostName();
162
 
163
     // local.me is an identifier for a server for getLastError w:2+
164
     bool exists = Helpers::getSingleton(txn, "local.me", _me);
165
@@ -373,10 +374,10 @@
166
     }
167
 
168
     virtual bool run(OperationContext* txn,
169
-                     const string& ns,
170
+                     const std::string& ns,
171
                      BSONObj& cmdObj,
172
                      int options,
173
-                     string& errmsg,
174
+                     std::string& errmsg,
175
                      BSONObjBuilder& result) {
176
         HandshakeArgs handshake;
177
         Status status = handshake.initialize(cmdObj);
178
@@ -393,7 +394,7 @@
179
 } handshakeCmd;
180
 
181
 bool replHandshake(DBClientConnection* conn, const OID& myRID) {
182
-    string myname = getHostName();
183
+    std::string myname = getHostName();
184
 
185
     BSONObjBuilder cmd;
186
     cmd.append("handshake", myRID);
187
@@ -445,7 +446,7 @@
188
         BSONElement e = i.next();
189
         if (e.eoo())
190
             break;
191
-        string name = e.embeddedObject().getField("name").valuestr();
192
+        std::string name = e.embeddedObject().getField("name").valuestr();
193
         if (!e.embeddedObject().getBoolField("empty")) {
194
             if (name != "local") {
195
                 if (only.empty() || only == name) {
196
@@ -459,7 +460,7 @@
197
     save(txn);
198
 }
199
 
200
-void ReplSource::resyncDrop(OperationContext* txn, const string& db) {
201
+void ReplSource::resyncDrop(OperationContext* txn, const std::string& db) {
202
     log() << "resync: dropping database " << db;
203
     OldClientContext ctx(txn, db);
204
     dropDatabase(txn, ctx.db());
205
@@ -502,13 +503,13 @@
206
 
207
 static DatabaseIgnorer ___databaseIgnorer;
208
 
209
-void DatabaseIgnorer::doIgnoreUntilAfter(const string& db, const Timestamp& futureOplogTime) {
210
+void DatabaseIgnorer::doIgnoreUntilAfter(const std::string& db, const Timestamp& futureOplogTime) {
211
     if (futureOplogTime > _ignores[db]) {
212
         _ignores[db] = futureOplogTime;
213
     }
214
 }
215
 
216
-bool DatabaseIgnorer::ignoreAt(const string& db, const Timestamp& currentOplogTime) {
217
+bool DatabaseIgnorer::ignoreAt(const std::string& db, const Timestamp& currentOplogTime) {
218
     if (_ignores[db].isNull()) {
219
         return false;
220
     }
221
@@ -594,12 +595,12 @@
222
     }
223
 
224
     // Check for duplicates again, since we released the lock above.
225
-    set<string> duplicates;
226
+    set<std::string> duplicates;
227
     Database::duplicateUncasedName(db, &duplicates);
228
 
229
     // The database is present on the master and no conflicting databases
230
     // are present on the master.  Drop any local conflicts.
231
-    for (set<string>::const_iterator i = duplicates.begin(); i != duplicates.end(); ++i) {
232
+    for (set<std::string>::const_iterator i = duplicates.begin(); i != duplicates.end(); ++i) {
233
         ___databaseIgnorer.doIgnoreUntilAfter(*i, lastTime);
234
         incompleteCloneDbs.erase(*i);
235
         addDbNextPass.erase(*i);
236
@@ -794,10 +795,10 @@
237
 }
238
 
239
 void ReplSource::syncToTailOfRemoteLog() {
240
-    string _ns = ns();
241
+    std::string _ns = ns();
242
     BSONObjBuilder b;
243
     if (!only.empty()) {
244
-        b.appendRegex("ns", string("^") + pcrecpp::RE::QuoteMeta(only));
245
+        b.appendRegex("ns", std::string("^") + pcrecpp::RE::QuoteMeta(only));
246
     }
247
     BSONObj last = oplogReader.findOne(_ns.c_str(), Query(b.done()).sort(BSON("$natural" << -1)));
248
     if (!last.isEmpty()) {
249
@@ -845,7 +846,7 @@
250
 */
251
 int ReplSource::_sync_pullOpLog(OperationContext* txn, int& nApplied) {
252
     int okResultCode = 1;
253
-    string ns = string("local.oplog.$") + sourceName();
254
+    std::string ns = std::string("local.oplog.$") + sourceName();
255
     LOG(2) << "sync_pullOpLog " << ns << " syncedTo:" << syncedTo.toStringLong() << '\n';
256
 
257
     bool tailing = true;
258
@@ -865,7 +866,7 @@
259
                 BSONElement e = i.next();
260
                 if (e.eoo())
261
                     break;
262
-                string name = e.embeddedObject().getField("name").valuestr();
263
+                std::string name = e.embeddedObject().getField("name").valuestr();
264
                 if (!e.embeddedObject().getBoolField("empty")) {
265
                     if (name != "local") {
266
                         if (only.empty() || only == name) {
267
@@ -889,7 +890,7 @@
268
         if (!only.empty()) {
269
             // note we may here skip a LOT of data table scanning, a lot of work for the master.
270
             // maybe append "\\." here?
271
-            query.appendRegex("ns", string("^") + pcrecpp::RE::QuoteMeta(only));
272
+            query.appendRegex("ns", std::string("^") + pcrecpp::RE::QuoteMeta(only));
273
         }
274
         BSONObj queryObj = query.done();
275
         // e.g. queryObj = { ts: { $gte: syncedTo } }
276
@@ -908,7 +909,7 @@
277
 
278
     // show any deferred database creates from a previous pass
279
     {
280
-        set<string>::iterator i = addDbNextPass.begin();
281
+        set<std::string>::iterator i = addDbNextPass.begin();
282
         if (i != addDbNextPass.end()) {
283
             BSONObjBuilder b;
284
             b.append("ns", *i + '.');
285
@@ -939,7 +940,7 @@
286
         BSONObj op = oplogReader.next();
287
         BSONElement ts = op.getField("ts");
288
         if (ts.type() != Date && ts.type() != bsonTimestamp) {
289
-            string err = op.getStringField("$err");
290
+            std::string err = op.getStringField("$err");
291
             if (!err.empty()) {
292
                 // 13051 is "tailable cursor requested on non capped collection"
293
                 if (op.getIntField("code") == 13051) {
294
@@ -1107,7 +1108,7 @@
295
 
296
     // FIXME Handle cases where this db isn't on default port, or default port is spec'd in
297
     // hostName.
298
-    if ((string("localhost") == hostName || string("127.0.0.1") == hostName) &&
299
+    if ((std::string("localhost") == hostName || std::string("127.0.0.1") == hostName) &&
300
         serverGlobalParams.port == ServerGlobalParams::DefaultDBPort) {
301
         log() << "can't sync from self (localhost). sources configuration may be wrong." << endl;
302
         sleepsecs(5);
303
@@ -1252,7 +1253,7 @@
304
         if (s) {
305
             stringstream ss;
306
             ss << "sleep " << s << " sec before next pass";
307
-            string msg = ss.str();
308
+            std::string msg = ss.str();
309
             if (!serverGlobalParams.quiet)
310
                 log() << msg << endl;
311
             ReplInfo r(msg.c_str());
(-)databases/mongodb34/files/patch-pcre (+305 lines)
Line 0 Link Here
1
From 218a7b1d4ea3d3b04a5f6f54c66640b3a15586b0 Mon Sep 17 00:00:00 2001
2
From: Steven Green <steven@greenius.co.uk>
3
Date: Tue, 22 Aug 2017 13:08:48 -0400
4
Subject: [PATCH] SERVER-30166 Replace string with explicit std::string.
5
 Enables compulation when using --use-system-pcre which presusably used to do
6
 'using std::string' in an earlier version of pcre
7
8
Closes #1167
9
10
Signed-off-by: Mark Benvenuto <mark.benvenuto@mongodb.com>
11
(cherry picked from commit b7cebf82bc5e5572308cc3a3fb958a825db91498)
12
---
13
 src/mongo/db/dbwebserver.cpp             |  1 +
14
 src/mongo/db/matcher/expression_leaf.cpp |  4 ++--
15
 src/mongo/db/repl/master_slave.cpp       | 41 ++++++++++++++++----------------
16
 src/mongo/shell/bench.cpp                | 14 +++++------
17
 src/mongo/util/net/miniwebserver.cpp     |  1 +
18
 5 files changed, 32 insertions(+), 29 deletions(-)
19
20
diff --git a/src/mongo/db/dbwebserver.cpp b/src/mongo/db/dbwebserver.cpp
21
index b202e0500b9..50fa68a8176 100644
22
--- src/mongo/db/dbwebserver.cpp
23
+++ src/mongo/db/dbwebserver.cpp
24
@@ -65,6 +65,7 @@
25
 namespace mongo {
26
 
27
 using std::map;
28
+using std::string;
29
 using std::stringstream;
30
 using std::vector;
31
 
32
diff --git a/src/mongo/db/matcher/expression_leaf.cpp b/src/mongo/db/matcher/expression_leaf.cpp
33
index 33356317816..0bf8d8685bc 100644
34
--- src/mongo/db/matcher/expression_leaf.cpp
35
+++ src/mongo/db/matcher/expression_leaf.cpp
36
@@ -202,7 +202,7 @@ void ComparisonMatchExpression::debugString(StringBuilder& debug, int level) con
37
 }
38
 
39
 void ComparisonMatchExpression::serialize(BSONObjBuilder* out) const {
40
-    string opString = "";
41
+    std::string opString = "";
42
     switch (matchType()) {
43
         case LT:
44
             opString = "$lt";
45
@@ -886,7 +886,7 @@ void BitTestMatchExpression::debugString(StringBuilder& debug, int level) const
46
 }
47
 
48
 void BitTestMatchExpression::serialize(BSONObjBuilder* out) const {
49
-    string opString = "";
50
+    std::string opString = "";
51
 
52
     switch (matchType()) {
53
         case BITS_ALL_SET:
54
diff --git a/src/mongo/db/repl/master_slave.cpp b/src/mongo/db/repl/master_slave.cpp
55
index 96cfe58efdc..6929d5be297 100644
56
--- src/mongo/db/repl/master_slave.cpp
57
+++ src/mongo/db/repl/master_slave.cpp
58
@@ -168,7 +168,7 @@ BSONObj ReplSource::jsobj() {
59
 
60
     BSONObjBuilder dbsNextPassBuilder;
61
     int n = 0;
62
-    for (set<string>::iterator i = addDbNextPass.begin(); i != addDbNextPass.end(); i++) {
63
+    for (set<std::string>::iterator i = addDbNextPass.begin(); i != addDbNextPass.end(); i++) {
64
         n++;
65
         dbsNextPassBuilder.appendBool(*i, 1);
66
     }
67
@@ -177,7 +177,8 @@ BSONObj ReplSource::jsobj() {
68
 
69
     BSONObjBuilder incompleteCloneDbsBuilder;
70
     n = 0;
71
-    for (set<string>::iterator i = incompleteCloneDbs.begin(); i != incompleteCloneDbs.end(); i++) {
72
+    for (set<std::string>::iterator i = incompleteCloneDbs.begin(); i != incompleteCloneDbs.end();
73
+         i++) {
74
         n++;
75
         incompleteCloneDbsBuilder.appendBool(*i, 1);
76
     }
77
@@ -188,7 +189,7 @@ BSONObj ReplSource::jsobj() {
78
 }
79
 
80
 void ReplSource::ensureMe(OperationContext* txn) {
81
-    string myname = getHostName();
82
+    std::string myname = getHostName();
83
 
84
     // local.me is an identifier for a server for getLastError w:2+
85
     bool exists = Helpers::getSingleton(txn, "local.me", _me);
86
@@ -378,10 +379,10 @@ class HandshakeCmd : public Command {
87
     }
88
 
89
     virtual bool run(OperationContext* txn,
90
-                     const string& ns,
91
+                     const std::string& ns,
92
                      BSONObj& cmdObj,
93
                      int options,
94
-                     string& errmsg,
95
+                     std::string& errmsg,
96
                      BSONObjBuilder& result) {
97
         HandshakeArgs handshake;
98
         Status status = handshake.initialize(cmdObj);
99
@@ -398,7 +399,7 @@ class HandshakeCmd : public Command {
100
 } handshakeCmd;
101
 
102
 bool replHandshake(DBClientConnection* conn, const OID& myRID) {
103
-    string myname = getHostName();
104
+    std::string myname = getHostName();
105
 
106
     BSONObjBuilder cmd;
107
     cmd.append("handshake", myRID);
108
@@ -450,7 +451,7 @@ void ReplSource::forceResync(OperationContext* txn, const char* requester) {
109
         BSONElement e = i.next();
110
         if (e.eoo())
111
             break;
112
-        string name = e.embeddedObject().getField("name").valuestr();
113
+        std::string name = e.embeddedObject().getField("name").valuestr();
114
         if (!e.embeddedObject().getBoolField("empty")) {
115
             if (name != "local") {
116
                 if (only.empty() || only == name) {
117
@@ -481,7 +482,7 @@ Status ReplSource::_updateIfDoneWithInitialSync() {
118
     return Status::OK();
119
 }
120
 
121
-void ReplSource::resyncDrop(OperationContext* txn, const string& dbName) {
122
+void ReplSource::resyncDrop(OperationContext* txn, const std::string& dbName) {
123
     log() << "resync: dropping database " << dbName;
124
     invariant(txn->lockState()->isW());
125
 
126
@@ -531,13 +532,13 @@ void ReplSource::resync(OperationContext* txn, const std::string& dbName) {
127
 
128
 static DatabaseIgnorer ___databaseIgnorer;
129
 
130
-void DatabaseIgnorer::doIgnoreUntilAfter(const string& db, const Timestamp& futureOplogTime) {
131
+void DatabaseIgnorer::doIgnoreUntilAfter(const std::string& db, const Timestamp& futureOplogTime) {
132
     if (futureOplogTime > _ignores[db]) {
133
         _ignores[db] = futureOplogTime;
134
     }
135
 }
136
 
137
-bool DatabaseIgnorer::ignoreAt(const string& db, const Timestamp& currentOplogTime) {
138
+bool DatabaseIgnorer::ignoreAt(const std::string& db, const Timestamp& currentOplogTime) {
139
     if (_ignores[db].isNull()) {
140
         return false;
141
     }
142
@@ -627,7 +628,7 @@ bool ReplSource::handleDuplicateDbName(OperationContext* txn,
143
 
144
     // The database is present on the master and no conflicting databases
145
     // are present on the master.  Drop any local conflicts.
146
-    for (set<string>::const_iterator i = duplicates.begin(); i != duplicates.end(); ++i) {
147
+    for (set<std::string>::const_iterator i = duplicates.begin(); i != duplicates.end(); ++i) {
148
         ___databaseIgnorer.doIgnoreUntilAfter(*i, lastTime);
149
         incompleteCloneDbs.erase(*i);
150
         addDbNextPass.erase(*i);
151
@@ -822,10 +823,10 @@ void ReplSource::_sync_pullOpLog_applyOperation(OperationContext* txn,
152
 }
153
 
154
 void ReplSource::syncToTailOfRemoteLog() {
155
-    string _ns = ns();
156
+    std::string _ns = ns();
157
     BSONObjBuilder b;
158
     if (!only.empty()) {
159
-        b.appendRegex("ns", string("^") + pcrecpp::RE::QuoteMeta(only));
160
+        b.appendRegex("ns", std::string("^") + pcrecpp::RE::QuoteMeta(only));
161
     }
162
     BSONObj last = oplogReader.findOne(_ns.c_str(), Query(b.done()).sort(BSON("$natural" << -1)));
163
     if (!last.isEmpty()) {
164
@@ -873,7 +874,7 @@ class ReplApplyBatchSize
165
 */
166
 int ReplSource::_sync_pullOpLog(OperationContext* txn, int& nApplied) {
167
     int okResultCode = restartSyncAfterSleep;
168
-    string ns = string("local.oplog.$") + sourceName();
169
+    std::string ns = std::string("local.oplog.$") + sourceName();
170
     LOG(2) << "sync_pullOpLog " << ns << " syncedTo:" << syncedTo.toStringLong() << '\n';
171
 
172
     bool tailing = true;
173
@@ -893,7 +894,7 @@ int ReplSource::_sync_pullOpLog(OperationContext* txn, int& nApplied) {
174
                 BSONElement e = i.next();
175
                 if (e.eoo())
176
                     break;
177
-                string name = e.embeddedObject().getField("name").valuestr();
178
+                std::string name = e.embeddedObject().getField("name").valuestr();
179
                 if (!e.embeddedObject().getBoolField("empty")) {
180
                     if (name != "local") {
181
                         if (only.empty() || only == name) {
182
@@ -917,7 +918,7 @@ int ReplSource::_sync_pullOpLog(OperationContext* txn, int& nApplied) {
183
         if (!only.empty()) {
184
             // note we may here skip a LOT of data table scanning, a lot of work for the master.
185
             // maybe append "\\." here?
186
-            query.appendRegex("ns", string("^") + pcrecpp::RE::QuoteMeta(only));
187
+            query.appendRegex("ns", std::string("^") + pcrecpp::RE::QuoteMeta(only));
188
         }
189
         BSONObj queryObj = query.done();
190
         // e.g. queryObj = { ts: { $gte: syncedTo } }
191
@@ -936,7 +937,7 @@ int ReplSource::_sync_pullOpLog(OperationContext* txn, int& nApplied) {
192
 
193
     // show any deferred database creates from a previous pass
194
     {
195
-        set<string>::iterator i = addDbNextPass.begin();
196
+        set<std::string>::iterator i = addDbNextPass.begin();
197
         if (i != addDbNextPass.end()) {
198
             BSONObjBuilder b;
199
             b.append("ns", *i + '.');
200
@@ -980,7 +981,7 @@ int ReplSource::_sync_pullOpLog(OperationContext* txn, int& nApplied) {
201
         BSONObj op = oplogReader.nextSafe();
202
         BSONElement ts = op.getField("ts");
203
         if (ts.type() != Date && ts.type() != bsonTimestamp) {
204
-            string err = op.getStringField("$err");
205
+            std::string err = op.getStringField("$err");
206
             if (!err.empty()) {
207
                 // 13051 is "tailable cursor requested on non capped collection"
208
                 if (op.getIntField("code") == 13051) {
209
@@ -1148,7 +1149,7 @@ int ReplSource::sync(OperationContext* txn, int& nApplied) {
210
 
211
     // FIXME Handle cases where this db isn't on default port, or default port is spec'd in
212
     // hostName.
213
-    if ((string("localhost") == hostName || string("127.0.0.1") == hostName) &&
214
+    if ((std::string("localhost") == hostName || std::string("127.0.0.1") == hostName) &&
215
         serverGlobalParams.port == ServerGlobalParams::DefaultDBPort) {
216
         log() << "can't sync from self (localhost). sources configuration may be wrong." << endl;
217
         sleepsecs(5);
218
@@ -1293,7 +1294,7 @@ static void replMain(OperationContext* txn) {
219
         if (s) {
220
             stringstream ss;
221
             ss << "sleep " << s << " sec before next pass";
222
-            string msg = ss.str();
223
+            std::string msg = ss.str();
224
             if (!serverGlobalParams.quiet)
225
                 log() << msg << endl;
226
             ReplInfo r(msg.c_str());
227
diff --git a/src/mongo/shell/bench.cpp b/src/mongo/shell/bench.cpp
228
index 040002f5c6e..338477ebe56 100644
229
--- src/mongo/shell/bench.cpp
230
+++ src/mongo/shell/bench.cpp
231
@@ -674,7 +674,7 @@ void BenchRunWorker::generateLoadOnConnection(DBClientBase* conn) {
232
     invariant(bsonTemplateEvaluator.setId(_id) == BsonTemplateEvaluator::StatusSuccess);
233
 
234
     if (_config->username != "") {
235
-        string errmsg;
236
+        std::string errmsg;
237
         if (!conn->auth("admin", _config->username, _config->password, errmsg)) {
238
             uasserted(15931, "Authenticating to connection for _benchThread failed: " + errmsg);
239
         }
240
@@ -918,7 +918,7 @@ void BenchRunWorker::generateLoadOnConnection(DBClientBase* conn) {
241
 
242
                             if (!result["err"].eoo() && result["err"].type() == String &&
243
                                 (_config->throwGLE || op.throwGLE))
244
-                                throw DBException((string) "From benchRun GLE" +
245
+                                throw DBException((std::string) "From benchRun GLE" +
246
                                                       causedBy(result["err"].String()),
247
                                                   result["code"].eoo() ? 0 : result["code"].Int());
248
                         }
249
@@ -984,7 +984,7 @@ void BenchRunWorker::generateLoadOnConnection(DBClientBase* conn) {
250
 
251
                             if (!result["err"].eoo() && result["err"].type() == String &&
252
                                 (_config->throwGLE || op.throwGLE))
253
-                                throw DBException((string) "From benchRun GLE" +
254
+                                throw DBException((std::string) "From benchRun GLE" +
255
                                                       causedBy(result["err"].String()),
256
                                                   result["code"].eoo() ? 0 : result["code"].Int());
257
                         }
258
@@ -1031,7 +1031,7 @@ void BenchRunWorker::generateLoadOnConnection(DBClientBase* conn) {
259
 
260
                             if (!result["err"].eoo() && result["err"].type() == String &&
261
                                 (_config->throwGLE || op.throwGLE))
262
-                                throw DBException((string) "From benchRun GLE " +
263
+                                throw DBException((std::string) "From benchRun GLE " +
264
                                                       causedBy(result["err"].String()),
265
                                                   result["code"].eoo() ? 0 : result["code"].Int());
266
                         }
267
@@ -1133,7 +1133,7 @@ void BenchRunWorker::run() {
268
     try {
269
         std::unique_ptr<DBClientBase> conn(_config->createConnection());
270
         if (!_config->username.empty()) {
271
-            string errmsg;
272
+            std::string errmsg;
273
             if (!conn->auth("admin", _config->username, _config->password, errmsg)) {
274
                 uasserted(15932, "Authenticating to connection for benchThread failed: " + errmsg);
275
             }
276
@@ -1165,7 +1165,7 @@ void BenchRunner::start() {
277
         std::unique_ptr<DBClientBase> conn(_config->createConnection());
278
         // Must authenticate to admin db in order to run serverStatus command
279
         if (_config->username != "") {
280
-            string errmsg;
281
+            std::string errmsg;
282
             if (!conn->auth("admin", _config->username, _config->password, errmsg)) {
283
                 uasserted(
284
                     16704,
285
@@ -1201,7 +1201,7 @@ void BenchRunner::stop() {
286
     {
287
         std::unique_ptr<DBClientBase> conn(_config->createConnection());
288
         if (_config->username != "") {
289
-            string errmsg;
290
+            std::string errmsg;
291
             // this can only fail if admin access was revoked since start of run
292
             if (!conn->auth("admin", _config->username, _config->password, errmsg)) {
293
                 uasserted(
294
diff --git a/src/mongo/util/net/miniwebserver.cpp b/src/mongo/util/net/miniwebserver.cpp
295
index 5f4165d42f4..9fe847168ee 100644
296
--- src/mongo/util/net/miniwebserver.cpp
297
+++ src/mongo/util/net/miniwebserver.cpp
298
@@ -45,6 +45,7 @@
299
 namespace mongo {
300
 
301
 using std::shared_ptr;
302
+using std::string;
303
 using std::stringstream;
304
 using std::vector;
305
 
(-)graphics/opencollada/Makefile (-1 / +2 lines)
Lines 29-35 Link Here
29
BROKEN_sparc64=	cannot build: runaway process
29
BROKEN_sparc64=	cannot build: runaway process
30
30
31
# for files/patch-2d66943
31
# for files/patch-2d66943
32
DOS2UNIX_FILES=	COLLADABaseUtils/src/COLLADABUURI.cpp
32
DOS2UNIX_FILES=	COLLADABaseUtils/include/COLLADABUPcreCompiledPattern.h \
33
		COLLADABaseUtils/src/COLLADABUURI.cpp
33
34
34
post-patch:
35
post-patch:
35
	@${REINPLACE_CMD} -e 's|$${OPENCOLLADA_INST_LIBRARY}/cmake|${PREFIX}/share/cmake/Modules|' \
36
	@${REINPLACE_CMD} -e 's|$${OPENCOLLADA_INST_LIBRARY}/cmake|${PREFIX}/share/cmake/Modules|' \
(-)graphics/opencollada/files/patch-COLLADABaseUtils_include_COLLADABUPcreCompiledPattern.h (+13 lines)
Line 0 Link Here
1
--- COLLADABaseUtils/include/COLLADABUPcreCompiledPattern.h.orig	2018-03-26 12:11:34 UTC
2
+++ COLLADABaseUtils/include/COLLADABUPcreCompiledPattern.h
3
@@ -13,8 +13,8 @@
4
 
5
 #include "COLLADABUPrerequisites.h"
6
 
7
-struct real_pcre;
8
-typedef struct real_pcre pcre;
9
+struct real_pcre8_or_16;
10
+typedef struct real_pcre8_or_16 pcre;
11
 
12
 
13
 namespace COLLADABU

Return to bug 220613