]>
Commit | Line | Data |
---|---|---|
dcd1f2f1 JR |
1 | --- mongodb-src-r2.2.4/src/mongo/db/namespace.h~ 2013-04-01 04:41:49.000000000 +0200 |
2 | +++ mongodb-src-r2.2.4/src/mongo/db/namespace.h 2021-08-22 18:30:50.941369906 +0200 | |
3 | @@ -31,7 +31,7 @@ | |
4 | explicit Namespace(const char *ns) { *this = ns; } | |
5 | Namespace& operator=(const char *ns); | |
6 | ||
7 | - bool hasDollarSign() const { return strchr( buf , '$' ) > 0; } | |
8 | + bool hasDollarSign() const { return strchr( buf , '$' ) != 0; } | |
9 | void kill() { buf[0] = 0x7f; } | |
10 | bool operator==(const char *r) const { return strcmp(buf, r) == 0; } | |
11 | bool operator==(const Namespace& r) const { return strcmp(buf, r.buf) == 0; } | |
12 | --- mongodb-src-r2.2.4/src/mongo/db/client.h~ 2013-04-01 04:41:49.000000000 +0200 | |
13 | +++ mongodb-src-r2.2.4/src/mongo/db/client.h 2021-08-22 18:31:39.654710221 +0200 | |
14 | @@ -262,6 +262,6 @@ | |
15 | inline Client::GodScope::~GodScope() { cc()._god = _prev; } | |
16 | ||
17 | ||
18 | - inline bool haveClient() { return currentClient.get() > 0; } | |
19 | + inline bool haveClient() { return currentClient.get() != 0; } | |
20 | ||
21 | }; | |
22 | --- mongodb-src-r2.2.4/src/mongo/client/connpool.h~ 2013-04-01 04:41:49.000000000 +0200 | |
23 | +++ mongodb-src-r2.2.4/src/mongo/client/connpool.h 2021-08-22 18:32:59.911405982 +0200 | |
24 | @@ -259,7 +259,7 @@ | |
25 | return _conn; | |
26 | } | |
27 | ||
28 | - bool ok() const { return _conn > 0; } | |
29 | + bool ok() const { return _conn != 0; } | |
30 | ||
31 | string getHost() const { return _host; } | |
32 | ||
33 | --- mongodb-src-r2.2.4/src/mongo/s/shard.h~ 2013-04-01 04:41:49.000000000 +0200 | |
34 | +++ mongodb-src-r2.2.4/src/mongo/s/shard.h 2021-08-22 18:33:42.971429662 +0200 | |
35 | @@ -274,7 +274,7 @@ | |
36 | _finishedInit = true; | |
37 | } | |
38 | ||
39 | - bool ok() const { return _conn > 0; } | |
40 | + bool ok() const { return _conn != 0; } | |
41 | ||
42 | /** | |
43 | this just passes through excpet it checks for stale configs | |
44 | --- mongodb-src-r2.2.4/src/mongo/db/ops/update_internal.cpp~ 2013-04-01 04:41:49.000000000 +0200 | |
45 | +++ mongodb-src-r2.2.4/src/mongo/db/ops/update_internal.cpp 2021-08-22 18:36:03.678206895 +0200 | |
46 | @@ -1117,7 +1117,7 @@ | |
47 | continue; | |
48 | } | |
49 | ||
50 | - _hasDynamicArray = _hasDynamicArray || strstr( fieldName , ".$" ) > 0; | |
51 | + _hasDynamicArray = _hasDynamicArray || strstr( fieldName , ".$" ) != 0; | |
52 | ||
53 | Mod m; | |
54 | m.init( op , f , forReplication ); | |
55 | --- mongodb-src-r2.2.4/src/mongo/s/d_state.cpp~ 2013-04-01 04:41:49.000000000 +0200 | |
56 | +++ mongodb-src-r2.2.4/src/mongo/s/d_state.cpp 2021-08-22 18:37:07.564938002 +0200 | |
57 | @@ -411,7 +411,7 @@ | |
58 | if ( ! shardingState.hasVersion( ns ) ) | |
59 | return false; | |
60 | ||
61 | - return ShardedConnectionInfo::get(false) > 0; | |
62 | + return ShardedConnectionInfo::get(false) != 0; | |
63 | } | |
64 | ||
65 | class UnsetShardingCommand : public MongodShardCommand { |