0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 01:21:03 +01:00
Commit Graph

26043 Commits

Author SHA1 Message Date
Nick Stenning
5d4b3fe40c SERVER-10190 Upstart conf: use pidfile, not 'ps'
The default upstart config installed with MongoDB doesn't provide the
`--pidfile` or `--make-pidfile` options to `start-stop-daemon`, which
means it determines whether or not MongoDB is running by inspecting the
process table to see if there are any instances of "mongod" running.

This is a pretty crude mechanism, and we can make it substantially more
reliable (not susceptible to mongod instances running inside LXC
containers or similar) by simply getting start-stop-daemon to write a
pidfile.
2014-06-30 11:46:37 -04:00
Benety Goh
4350bfad7c SERVER-10190 reformat start-stop-daemon command line with newlines 2014-06-30 11:29:24 -04:00
James Page
44b0e35918 SERVER-14388 Fixup detection of yaml-cpp system library
The use of --use-system-yaml was incorrectly searching for yaml-cpp
under the 'yaml' name.

Search for yaml-cpp instead.

Fixes: SERVER-14388

Signed-off-by: Benety Goh <benety@mongodb.com>
2014-06-30 10:34:16 -04:00
Kaloian Manassiev
e1f5a39b1b SERVER-13961 Add OperationContext argument to Client::Context
Time tracking and database access in Client::Context require access to the
OperationContext. Adding it as argument.

This is in preparation for removing LockState from Client.
2014-06-28 14:12:40 -04:00
Kaloian Manassiev
89fcbab94c Revert "SERVER-13961 Add OperationContext argument to Client::Context"
This reverts commit 52edab7261.
2014-06-28 12:21:39 -04:00
Kaloian Manassiev
52edab7261 SERVER-13961 Add OperationContext argument to Client::Context
Time tracking and database access in Client::Context require access to the
OperationContext. Adding it as argument.

This is in preparation for removing LockState from Client.
2014-06-27 22:54:43 -04:00
Kaloian Manassiev
ecfc44d7bc SERVER-13961 Remove TLS LockState accesses from repl 2014-06-27 18:19:51 -04:00
Kaloian Manassiev
b9a211782b SERVER-13961 Move clean shutdown logic from dbexit to exitCleanly only
All remaining places, which call dbexit, outside of repl are in response
to unhandled exceptions, so it is not safe to call commit.

The repl calls happen at secondary replica startup time, so no writes
would have happened, so there should not be any data to throw out outside
of replication bookkeeping data.
2014-06-27 18:19:50 -04:00
matt dannenberg
3de470bbdd SERVER-14368 move isSelf from HostAndPort to a free function in namespace repl 2014-06-27 11:52:34 -04:00
Andy Schwerin
0fe44a581b SERVER-14374 Include mongo/util/mongoutils/str.h as needed.
Previously, the affected files compiled because of indirect includes from hostandport.h
2014-06-27 15:15:27 -04:00
Andy Schwerin
cf9d8c3ff9 SERVER-14374 Include server_options.h as needed and apply the std:: namespace when missing.
Previously, the affected files compiled because of indirect includes from hostandport.h
2014-06-27 15:15:27 -04:00
Hari Khalsa
207c8850f5 SERVER-13635 change lib deps 2014-06-27 15:11:45 -04:00
David Storch
818302f1f1 SERVER-14366 disallow $natural sort or hint with geoNear 2014-06-27 14:37:27 -04:00
Andy Schwerin
08571fb7fd SERVER-14376 Move mongoutils::html namespace into mongo::html namespace. 2014-06-27 14:33:19 -04:00
Andy Schwerin
3704fa06be SERVER-14376 Make mongoutils::str available in the mongo namespace. 2014-06-27 14:33:18 -04:00
Andy Schwerin
8c2f7ee6a0 SERVER-14376 Remove mongoutils::checksum, which was only called in one test. 2014-06-27 14:33:18 -04:00
Andy Schwerin
94ff35ae69 SERVER-14376 Get rid of mongoutils/README and test.cpp.
The README is no longer true, and the test is neither compiled nor run.
2014-06-27 14:33:18 -04:00
Andy Schwerin
3dd06b892e SERVER-14376 Get rid of mongoutils/hash.h.
Move the only function used by the only consumer into the consumer itself.
2014-06-27 14:33:18 -04:00
Hari Khalsa
8a6991a71d SERVER-13635 extents are mmapv1 specific, move into mmapv1 2014-06-27 14:16:25 -04:00
Hari Khalsa
d21efec1d8 SERVER-13635 keep mmapv1-specific record.h within mmapv1 impl 2014-06-27 11:40:47 -04:00
Tyler Brock
8ec5d664cb Revert "SERVER-13961 Remove TLS LockState accesses from repl"
This reverts commit e1dca2cdee.
2014-06-27 10:29:12 -04:00
David Storch
1cc6be662c SERVER-14097 SERVER-14098 execution-level explain for .find() and .count()
The explain implementation for .find() and .count() is feature complete. To use
the .find() implementation, set the enableNewExplain setParameter to true.

Count operations are explained through the new explain command, e.g.
db.runCommand({explain: {count: "coll", query: {foo: "bar"}}}).
2014-06-27 09:56:04 -04:00
Benety Goh
a67bddc57c SERVER-5092 tagged storage and networking LOG() messages 2014-06-27 09:42:54 -04:00
Benety Goh
b08b3ae832 SERVER-5092 added server parameters for tag log levels 2014-06-27 09:42:53 -04:00
Benety Goh
4d00dd9723 SERVER-5092 support log tags for LOG() messages 2014-06-26 19:41:32 -04:00
Kaloian Manassiev
e1dca2cdee SERVER-13961 Remove TLS LockState accesses from repl 2014-06-26 16:15:51 -04:00
Kaloian Manassiev
9e93c8d95e SERVER-13961 Add capability to register and discover OperationContexts
This replaces the need to iterate through the list of registered Clients
for diagnostics/reporting purposes. Also moves some of the per-client
information to be under OperationContext.

This is in preparation for removing LockState from TLS.
2014-06-26 16:15:50 -04:00
Jason Rassi
6937b273a7 SERVER-14341 OpCounters missing calls to _checkWrap() added back 2014-06-26 16:13:29 -04:00
matt dannenberg
6dea111420 SERVER-14361 fix not master problem in initial_sync3.js 2014-06-26 10:58:51 -04:00
matt dannenberg
d079a819ec SERVER-14077 fix binding problem in ReplSetTest.awaitReplication() 2014-06-26 10:58:51 -04:00
matt dannenberg
a99774c9f3 SERVER-14135 implement processReplSetUpdatePosition() and processReplSetUpdatePositionHandshake() in LegacyReplicationCoordinator 2014-06-26 10:58:51 -04:00
matt dannenberg
c456786eb2 SERVER-14135 implement processReplSetSyncFrom() in LegacyReplicationCoordinator 2014-06-26 10:58:51 -04:00
matt dannenberg
80788f57c2 SERVER-14135 implement processReplSetMaintenance() in LegacyReplicationCoordinator 2014-06-26 10:58:51 -04:00
matt dannenberg
7cf2a7c7a0 SERVER-14135 implement processReplSetFreeze() in LegacyReplicationCoordinator 2014-06-26 10:58:51 -04:00
Eliot Horowitz
341ae84ab2 SERVER-14352: clean up static init so no longer need DEFINE 2014-06-26 15:47:01 -04:00
Spencer T Brody
eec11bb2f9 SERVER-14318 Implement processReplSetElect in LegacyReplicationCoordinator 2014-06-26 10:57:58 -04:00
Spencer T Brody
d432d2e50b SERVER-14318 Implement processReplSetFresh in LegacyReplicationCoordinator 2014-06-26 10:57:58 -04:00
Spencer T Brody
31dd0e70b3 SERVER-14318 Implement processReplSetGetRBID in LegacyReplicationCoordinator 2014-06-26 10:57:57 -04:00
Spencer T Brody
072d42fd7f SERVER-14277 Implement processReplSetInitiate in LegacyReplicationCoordinator 2014-06-26 10:57:57 -04:00
Spencer T Brody
c0fcdc06f1 SERVER-14277 Implement processReplSetReconfig in LegacyReplicationCoordinator 2014-06-26 10:57:57 -04:00
Spencer T Brody
d9c3bebb6b SERVER-14277 Clean up some cases of throwing strings when parsing replset configs 2014-06-26 10:57:57 -04:00
Matt Kangas
5632cbd525 SERVER-14253 mongoexport csv should generate 'ObjectId', not 'ObjectID' 2014-06-25 21:20:00 -04:00
Benety Goh
0250c94810 SERVER-14118 removed redundant cfg._id == undefined check from rs.add() 2014-06-25 16:18:53 -04:00
Benety Goh
c3da6483fc SERVER-14118 omit _id from rs.add() configuration document in test 2014-06-25 16:18:53 -04:00
David Murphy
2e68421c8f SERVER-14118 Added ability to detect if _id is missing when passing an object to rs.add, if missing add it automatically as if it was a string that had been passed.
Signed-off-by: Benety Goh <benety@mongodb.com>
2014-06-25 16:18:53 -04:00
Shaun Verch
caa0432e6e SERVER-14315 Support MinKey and MaxKey extended JSON objects in JSON parser 2014-06-25 16:04:47 -04:00
David Storch
cdfdc8ee6b SERVER-14317 remove extraneous check in idhack runner 2014-06-25 15:50:29 -04:00
David Storch
600ec8db2b SERVER-14147 fix index_multi.js retry by passing the correct noConnect value 2014-06-25 15:32:45 -04:00
Tyler Brock
cdd1172ad3 SERVER-14357: Add support for top level JSON Array 2014-06-25 15:01:59 -04:00
Lu Guanqun
11ea31ab1a SERVER-4042 convert HashTable::iterAll to use stdx::bind instead of function callback
Signed-off-by: Benety Goh <benety@mongodb.com>
2014-06-25 14:45:14 -04:00