Commit Graph

1157 Commits

Author SHA1 Message Date
Tad Marshall
8d8b272225 SERVER-4008 -- don't leak memory in the shell
Track the strdup-ed (i.e. malloc-ed) strings returned by linenoise, and
free the memory when we are done with it. Free command line history
memory explicitly when we save the history to a file and stop using it.
Non-Windows versions were freeing this memory using an atexit handler,
but this handler isn't set up for Windows.
2011-11-16 13:07:37 -05:00
dwight
1306fee268 fix warning 2011-11-15 13:17:20 -05:00
Scott Hernandez
7e14b578ff SERVER-2370: more shell help 2011-11-15 11:38:03 -05:00
Kristina
2009565604 Handle auth in C++, not JS SERVER-4241 2011-11-14 17:53:54 -05:00
Spencer T Brody
408a7cec5e Fix authentication handling for parallel shell. 2011-11-14 11:32:34 -05:00
Brandon Diamond
e58ca1a720 SERVER-4176: Added shell help for new behavior 2011-11-14 10:57:41 -05:00
Kristina
03f105bd89 Make fsync lock/unlock helpers use this 2011-11-11 12:13:13 -05:00
Kristina
437a7cc46a Make currentOp and killOp work with multi-db tests 2011-11-11 11:56:52 -05:00
Spencer T Brody
ea662bee62 Don't add admin user for mongod in auth test if its a part of a replica set 2011-11-10 23:13:11 -05:00
Spencer T Brody
7b92494060 If restarting an array of nodes, authenticate to that every node in the array. 2011-11-10 22:27:37 -05:00
Spencer T Brody
7d69c49e97 Use MongoRunner to start new mongoses for tests. 2011-11-10 20:46:03 -05:00
Kristina
3bbe355757 Fix db check for parallel shell 2011-11-10 16:56:26 -05:00
dwight
e8c780f22d mongoperf 2011-11-10 15:15:54 -05:00
Kristina
1b8a09bc33 Much cleaner handling of parallel shell args 2011-11-10 15:27:54 -05:00
Kristina
20e0643c1a Allow parallel shell to authenticate 2011-11-10 13:47:07 -05:00
Spencer T Brody
1624e05909 Start standalone mongod's with --keyFile for auth tests in case that mongod is added to a shard or replSet later. 2011-11-10 13:29:52 -05:00
gregs
df07b8f53c fix for helper function getChunkDistribution() 2011-11-10 11:09:13 -05:00
Spencer T Brody
f2d426df70 Enable running our full js test suite with authentication. SERVER-4237. 2011-11-09 18:06:10 -05:00
Tony Hannan
98314e257e SERVER-4122: "*" is a valid dbname. make mongodump use "" instead of "*" to represent all dbs -- "" is not a valid dbname. Also make shell "use" command accept "*" or any other special char as dbname 2011-11-03 20:17:56 -04:00
gregs
7a4e3bca9e allow setting nopreallocj in ShardingTest directly 2011-11-03 15:50:46 -04:00
dwight
bef479c22e crlf 2011-11-02 19:26:29 -04:00
Eliot Horowitz
26e54bc695 update windows shell 2011-11-02 01:34:33 -04:00
gregs
72e20613b6 buildbot auto2.js log shouldMigrate and allow waiting for balancer 2011-11-01 10:12:11 -04:00
Eliot
751896bafd Merge pull request #122 from tadmarshall/SERVER-3771-part-1-reissue-2
SERVER-3771 -- part 1 (reissue 2) -- don't let 'prompt' become undefined
2011-10-31 21:10:11 -07:00
Brandon Diamond
83e830d42a SERVER-4176: Usability improvement for update() 2011-10-31 11:02:06 -04:00
dwight
34ee7fc118 update vcxproj shell 2011-10-31 10:00:59 -04:00
dwight
50b4d51738 tweak better error msg 2011-10-31 10:00:47 -04:00
gregs
204f1999bf allow lookup of index of config server in ShardingTest 2011-10-31 09:28:59 -04:00
Brandon Diamond
f9a94a82e8 SERVER-4113: shell validation to avoid "*" db name 2011-10-28 11:39:07 -04:00
dwight
dae93e9262 compile 2011-10-28 09:43:41 -04:00
gregs
76b41b888c use curr collection not coll var when printing shard chunks 2011-10-26 10:45:09 -04:00
Eliot Horowitz
bc5547483a updated windows file 2011-10-26 03:42:19 -04:00
gregs
a7bf027f51 fixes for bench testing and tracking of open mongods 2011-10-25 19:19:23 -04:00
gregs
01a0610e69 jsTest namespace 2011-10-25 16:16:53 -04:00
gregs
c8ae2c6c56 add isStopped function 2011-10-25 16:11:24 -04:00
Brandon Diamond
b92b87505a SERVER-4132: shell prompt now includes repset name 2011-10-25 16:00:04 -04:00
dwight
b5b1c72d4e beginning of dynamic naming (nondns) capability 2011-10-25 12:04:59 -04:00
Eliot Horowitz
99db06077e fix \. in printShardingStatus when looking up collections, part of SERVER-3702 2011-10-23 23:34:27 -04:00
Spencer T Brody
8a93ffd3f8 Make all mongoses shut down when stopping a ShardingTest. 2011-10-20 19:19:39 -04:00
gregs
ad39dc9944 buildbot also shut down config servers in sharding tests 2011-10-19 12:13:07 -04:00
gregs
b8d9f892be add shard name to shard conn 2011-10-18 14:49:11 -04:00
gregs
aff5b255da test for SERVER-3763 2011-10-17 17:10:09 -04:00
Tad Marshall
6133ec7139 SERVER-4084 -- spell 'during' correctly
Change "durring" to "during" in an error message.
2011-10-17 05:47:14 -04:00
Eliot
795c702366 Merge pull request #116 from tadmarshall/SERVER-3991-reissue
SERVER-3991 (reissue) -- don't index past end of string
2011-10-14 22:25:37 -07:00
Eliot
feabf3ca0a Merge pull request #114 from tadmarshall/SERVER-4007-reissue
SERVER-4007 (reissue) -- use .c_str() instead of .data()
2011-10-14 22:22:52 -07:00
gregs
89271fb8ac allow custom properties to be passed to all shards and nodes in sharded rsets 2011-10-13 17:43:35 -04:00
agirbal
9b12a1c446 - SERVER-4068: v8 build sometimes fails sharding/auto2.js, may be due to GC 2011-10-13 12:51:43 -07:00
gregs
a0407a42bf allow replsettest to use new run framework in servers.js 2011-10-13 15:45:35 -04:00
Tad Marshall
862dc0f711 SERVER-3771 -- part 1 (reissue 2) -- don't let 'prompt' become undefined
This is a reissue of my earlier fix.  I'm trying to break them down into
bite-sized parts to make them easier to pull.

Test the return value from a call to a function prompt (included regex)
and only use it if it is a string.  If we have no string prompt, display
the default prompt = sayReplSetMemberState()+"> "; .  Edited for style.
2011-10-13 07:54:51 -04:00
gregs
5eb65e7d66 don't call db.getLastError() by default without db variable 2011-10-12 23:47:37 -04:00