Eliot Horowitz
3731e71d77
better error handling for monogodump
2011-07-10 00:25:43 -04:00
Eliot Horowitz
0d698d5227
split MessagePort into MessagePort and Socket
2011-07-06 17:50:09 -04:00
Spencer T Brody
685203a89c
Fix SERVER-3276 - mongoimport stripping leading tabs when importing TSV files
2011-06-27 14:18:53 -04:00
Eliot Horowitz
3a77049fda
net cleaning: message split checkpoint where everything works
2011-06-26 18:11:45 -04:00
Eliot Horowitz
142a86b237
net cleaning: move message.* to net/
...
net cleaning: move http tools to net/
2011-06-26 17:13:54 -04:00
Eliot Horowitz
3314bda6e1
forceTableScan option for mongodump SERVER-3338
2011-06-26 00:22:44 -04:00
U-tellus\cwestin
436ba6805d
server-2904
2011-06-23 21:41:23 -07:00
Dwight
473a982fab
small sniffer improvements
2011-06-21 13:22:59 -04:00
dwight
bbb2238e28
Merge branch 'master' of git@github.com:mongodb/mongo
2011-06-16 22:38:09 -04:00
dwight
b0f0f07ef3
tweak msg
2011-06-16 22:38:05 -04:00
Eliot Horowitz
e47444fe42
compile linux
2011-06-15 23:26:29 -04:00
Eliot Horowitz
d5decb0b69
little nicer
2011-06-15 22:54:37 -04:00
gregs
c3d9873759
add slaveOk option to mongoexport SERVER-3086
2011-06-01 18:17:51 -04:00
Eliot Horowitz
bec32bf3cd
don't use ? curop because it leads to user confusion
...
add numYields to curop
SERVER-3179
2011-06-01 12:27:09 -04:00
Eliot Horowitz
f70b49ddef
compile
2011-05-09 23:59:14 -04:00
Mathias Stearn
f3a9c31c5c
Tools now support --journal with --dbpath SERVER-2300
2011-05-09 15:46:12 -04:00
Greg Studer
ac9c6a7f9a
also needs unsigned
2011-04-28 07:28:08 -07:00
gregs
8659088c68
int32_t not available on win32
2011-04-28 10:15:37 -04:00
Mathias Stearn
d7d2ce01f5
Don't show unrelated fields in mongostat when connected to mongos SERVER-2925
2011-04-19 13:10:44 -04:00
dwight
0e34fc9b58
compile
2011-04-18 18:49:50 -04:00
dwight
4f969e112a
trap segfaults and such and try to log them on windows
...
we also try to write a note to the windows event viewer
2011-04-18 18:44:38 -04:00
Mathias Stearn
c5f2988fd0
Use FILE* for I/O in mongodump for better error reporting SERVER-2143
2011-04-13 19:04:38 -04:00
Eliot Horowitz
780539fe55
make mongodump work on local.oplog.rs
2011-04-12 13:13:43 -04:00
Mathias Stearn
b40989ef27
unused variable warning
2011-04-05 15:20:12 -04:00
Eliot Horowitz
df27479b68
fix compile warning
2011-04-05 03:11:49 -04:00
Mathias Stearn
64151ca41a
Make mongodump --oplog work with auth SERVER-2850
2011-04-04 12:47:59 -04:00
Mathias Stearn
244b162111
Use intrusive_ptr rather than shared_ptr for BSONObj
...
Advantages:
* Owned BSONObj now uses 1 heap allocation rather than 3
* sizeof(BSONObj) is now 16 rather than 24 (on 64 bit)
* perftest bson shows it to be much faster
Change in BSONObj constructor API for owned case to make sure old code gets
updated to allocate room for the ref count. Anyone using BSONObjBuilder doesn't
need to worry about this change.
2011-04-03 20:50:45 -04:00
Mathias Stearn
fa7cd65e48
g++ 4.6 compile (new -Wunused-but-set-variable warning)
2011-04-03 19:10:36 -04:00
Richard Kreuter
c31719663e
SERVER-2691.
2011-03-17 15:34:40 -04:00
Mathias Stearn
2b58bd8904
Changes to source needed to compile cleanly with clang++
2011-03-16 17:25:53 -04:00
Mathias Stearn
193ab1ee75
s/u_int32_t/uint32_t/
2011-03-15 20:07:28 -04:00
Eliot Horowitz
c6d2d29d42
don't include mmap in client cpp and fake for sniffer
2011-03-07 16:28:24 -05:00
Eliot Horowitz
28683f8464
repair handles invalid objects better
2011-03-06 21:43:54 -05:00
Eliot Horowitz
b85ef57e22
repair mode works with -c
2011-03-06 19:03:52 -05:00
Eliot Horowitz
b2fc358af3
mongotop for collection load
2011-03-06 18:03:53 -05:00
Eliot Horowitz
cf1b25029e
if you specify -d local -c oplog.$main should dump
2011-03-04 16:56:33 -05:00
Eliot Horowitz
15dcbf6866
better inf. loop testing
2011-03-03 13:12:35 -05:00
Eliot Horowitz
0229a329b5
fix boost 1.45
2011-03-03 10:15:10 -05:00
Eliot Horowitz
c2b809bd67
better repair mongodump
2011-02-27 01:05:47 -05:00
Eliot Horowitz
357e8f0a22
more mongostat docs
2011-02-26 11:45:10 -05:00
dwight
3be9ac6efa
typo and formatting while at it
2011-02-26 11:02:55 -05:00
Mathias Stearn
5c3e71ac02
mongodump shouldn't use QueryOption_Exhaust when connected to mongos SERVER-2628
2011-02-25 13:50:24 -05:00
Eliot Horowitz
07dfc029c7
update mongorestore for large documents SERVER-2575
2011-02-17 10:14:09 -05:00
Eliot Horowitz
9fbb64caf3
fix mem output for values between 1000 and 1024 mb
2011-02-10 01:47:09 -05:00
Eliot Horowitz
a8b01fa521
fix --port --discover for mongostat SERVER-2457
2011-02-02 01:00:38 -05:00
Eliot Horowitz
9a6f2dcf91
fix mongoimport progress bar with stdin SERVER-2427
2011-01-31 02:05:45 -05:00
Eliot Horowitz
55637a2881
safer checks in mongostat SERVER-2438
2011-01-30 11:44:30 -05:00
Eliot Horowitz
9a6b01a2c3
change tool help from repl pairs to sets SERVER-2390
2011-01-25 11:58:21 -05:00
Eliot Horowitz
880a775423
fix projecton generation for export since it uses getFieldDotted SERVER-2369
2011-01-17 15:32:40 -05:00
Eliot Horowitz
006f2cdab8
fix fclose
2011-01-16 01:55:36 -05:00
Eliot Horowitz
7a1c5d322c
handle $err in mongodump SERVER-1851
2011-01-16 01:30:48 -05:00
Eliot Horowitz
fd3adf7629
close bson file handles SERVER-2359
2011-01-16 00:22:58 -05:00
Aaron
0d58f8d17b
when durableDefaultOn is specified, don't enable durability in tool binaries
2011-01-12 11:39:25 -08:00
Eliot Horowitz
6485f8b9f3
working on some repair utilities
2011-01-09 21:51:16 -05:00
Eliot Horowitz
51ca8ee218
FileAllocator cleaning
2011-01-09 01:45:33 -05:00
Eliot Horowitz
b828d21630
ran astyle SERVER-2304
2011-01-04 00:40:41 -05:00
Eliot Horowitz
2205f04719
fix restore
2010-12-09 22:59:28 -05:00
Richard Kreuter
2d44cc0420
Fixup ns when inserting index & check for errors. SERVER-2186.
2010-12-09 15:16:29 -05:00
Richard Kreuter
c59538bc73
Make the file being processed a member of Tool.
2010-12-09 15:15:24 -05:00
Mathias Stearn
53c8e5e366
mongoimport: --upsertFields should imply --upsert SERVER-2070
2010-12-01 16:39:16 -05:00
Mathias Stearn
efa0e8ab41
Use oplog to make mongodump/restore point in time SERVER-2025
2010-11-29 14:47:44 -05:00
Mathias Stearn
c83071685f
make sure tools always use the same slave connection
...
This is needed for SERVER-2025 to be implemented safely
2010-11-29 14:47:44 -05:00
Eliot Horowitz
38e3a493f4
compile linux
2010-11-28 00:07:55 -05:00
Eliot Horowitz
558cb4a9c8
mongostat shows replicated ops SERVER-1565
2010-11-09 17:02:15 -05:00
Eliot Horowitz
b4f5ffa3a4
better mongostat output for dbs > 1tb
2010-11-09 11:50:01 -05:00
Eliot Horowitz
918b551f11
help for netIn/Out SERVER-2081
2010-11-09 00:38:13 -05:00
Eliot Horowitz
b169ad86d9
net info in mongostat SERVER-2081
2010-11-09 00:34:47 -05:00
Mathias Stearn
cb6be477b3
fix for finding hidden files SERVER-2000
2010-11-05 19:51:10 -04:00
Mathias Stearn
b9cb6ea977
skip hidden files and directories in mongodump SERVER-2000
2010-11-05 16:05:47 -04:00
Mathias Stearn
ef1c263192
Do indexes after data in mongorestore SERVER-1975
2010-11-05 15:14:55 -04:00
Eliot Horowitz
d8bcfc55a9
--discover works for mongos now
2010-11-03 18:57:19 -04:00
Eliot Horowitz
b741e68528
better printing for mongos + shards SERVER-2038
2010-11-03 18:57:19 -04:00
Eliot Horowitz
2dce387d96
mongostat cleaning and towards discover for sharding SERVER-2038
2010-11-03 18:57:19 -04:00
Mathias Stearn
c74c0f9e28
Use QueryOption_Exaust in mongodump. SERVER-2059
2010-11-03 14:14:00 -04:00
Mathias Stearn
77a0cb7662
outdated TODO
2010-11-03 14:14:00 -04:00
Eliot Horowitz
ca779aa4ae
clean up tools option controls
2010-11-02 10:49:43 -04:00
Eliot Horowitz
36328b2020
show memory in m or g add --all option
2010-10-25 02:14:48 -04:00
Eliot Horowitz
13703038d3
mongostat shows # of active readers/writers SERVER-1997
2010-10-24 20:32:19 -04:00
Eliot Horowitz
7237cd308d
when mongostat in discover mode turn off verbose socket logging
2010-10-24 10:40:25 -04:00
Eliot Horowitz
8f4624a917
easier auto detection of replica set status from ismaster
2010-10-24 10:36:38 -04:00
Eliot Horowitz
505a7ef8e4
intial support for --discover
2010-10-15 13:56:50 -04:00
Eliot Horowitz
069e56b8b3
master/slave set info in mongostat part of SERVER-1565
2010-10-15 11:20:04 -04:00
Eliot Horowitz
6240bac27c
mongostat base support for many servers
2010-10-14 16:04:14 -04:00
Eliot Horowitz
5a93445cb0
cleaning stat code to split logic/display better
2010-10-14 14:59:45 -04:00
Eliot Horowitz
838fd6ff76
fix SIGHUP handling SERVER-1934
...
when forked SIGHUP ignored
when not forked, SIGHUP will terminate nicely
2010-10-13 11:13:54 -04:00
Kristina Chodorow
0bb165f589
check imports are going to a master SERVER-1878
2010-10-08 11:23:23 -04:00
Aaron
14baf5f3c9
better exception handling in mongobridge
2010-09-27 14:11:15 -07:00
Mathias Stearn
4c51c1bf13
Tools shouldn't use $snapshot with --dbpath SERVER-1833
2010-09-23 14:40:46 -04:00
Eliot Horowitz
d3d719c3aa
don't use snapshot with another query SERVER-1383
2010-09-23 00:29:07 -04:00
Kristina Chodorow
437fb131dc
make bsondump check for empty path
2010-09-10 14:27:42 -04:00
Dwight
b2e6ff04bc
compile?
2010-09-09 10:17:02 -04:00
Justin Dearing
52163efb4d
Made the special stdout parameter -, to be more in line with other apps, e.g. nmap.
2010-08-23 11:38:39 -04:00
Alberto Lerner
7a7cc4adfa
SERVER-1452 StringData-ing up, c_str()-ing down
2010-08-18 18:12:31 -04:00
Mathias Stearn
d27b1646a1
Hide connection options for tools that don't connect SERVER-1574
2010-08-16 13:17:11 -04:00
Eliot Horowitz
f78f97061b
use json for bsondump SERVER-1631
2010-08-13 22:30:57 -04:00
Mathias Stearn
22057840db
better help for mongostat
2010-08-09 14:43:16 -04:00
Kristina Chodorow
b463621835
allow dumping a collection to stdout SERVER-763
2010-08-06 18:20:54 -04:00
Eliot Horowitz
7d5861a7c6
make cells wider
2010-07-30 15:11:19 -04:00
Eliot Horowitz
67f4da9b32
replaced replica pair connection with basic set version SERVER-1320
2010-07-30 14:30:02 -04:00
Eliot Horowitz
ceda65cb2d
fix tool connection code so can use repl set, etc...
2010-07-30 11:40:29 -04:00
Eliot Horowitz
4b488f8a8a
optional query for mongodump
2010-07-28 14:10:33 -04:00
Alberto Lerner
37c9c403de
SERVER-1270 Elim c_str() /tools
2010-07-20 12:58:23 -04:00
Alberto Lerner
f51a4d0669
SERVER-1270 Hook StringData to BufBuilder
2010-07-19 09:56:24 -04:00
Alberto Lerner
d0d79d0fbf
Fix warnings
2010-07-19 09:40:15 -04:00
Alberto Lerner
dcd0dbf1b9
Fix build
2010-07-18 20:04:25 -04:00
dwight
528ad7a41a
compile sniffer
2010-07-18 14:18:33 -04:00
Aaron
7e40a057c7
SERVER-1387 add exhaust mode to mongo bridge
2010-07-15 15:50:12 -07:00
Eliot Horowitz
28418f3ea2
stat help and cleaning
2010-07-12 13:17:34 -04:00
Eliot Horowitz
275fb3f056
mongostat has queue length
2010-07-12 13:06:16 -04:00
Mathias Stearn
724228684e
Add --indexesLast option since it's not always faster SERVER-1377
2010-07-07 21:31:14 -04:00
Mathias Stearn
1329d93774
restore indexes last SERVER-1377
2010-07-07 21:31:14 -04:00
Mathias Stearn
8242ebd353
fadvise in mongorestore
2010-07-07 21:31:14 -04:00
Mathias Stearn
3e12f9c332
squash warning
2010-07-02 12:03:07 -04:00
Eliot Horowitz
501fca1b02
don't restore system.profile SERVER-1294
2010-06-30 14:29:19 -04:00
Mathias Stearn
0e5ed0a83e
more strlen(x) == 0 smashing
2010-06-29 20:07:09 -04:00
Mathias Stearn
2e6c1584c0
ignore UTF-8 BOM in mongoimport SERVER-862
2010-06-28 11:38:57 -04:00
Eliot Horowitz
0549d3cc2e
some tool cleaning
2010-06-19 12:46:10 -04:00
Mathias Stearn
efbbcc80be
Allow specifying upsert fields for mongoimport SERVER-1186
2010-06-14 11:52:09 -04:00
Mathias Stearn
78cb3cfc87
--jsonArray for mongoexport SERVER-1083
2010-06-14 10:56:25 -04:00
Mathias Stearn
dc95ed0576
--jsonArray for mongoimport SERVER-1083
2010-06-14 10:56:25 -04:00
Mathias Stearn
1248f119bd
--noimport hidden option to mongoimport for benchmarking JSON parser
2010-06-14 08:25:25 -04:00
Eliot Horowitz
5609a64bf0
safer faults/s
2010-06-11 23:33:42 -04:00
Kenny Gorman
1829364b73
added faults/s
2010-06-12 11:30:52 +08:00
Eliot Horowitz
a12b707300
auto-reconnect for mongostat
2010-06-09 13:20:35 -04:00
Eliot Horowitz
cbb36406f0
some tool cleaning, bsondump tool
2010-06-09 11:31:30 -04:00
dwight
a3e03d7fe8
towards QueryOption_exhaust
2010-06-05 22:37:59 -04:00
Mathias Stearn
0b140c7313
support '-' in fields for mongoimport/export SERVER-1127
2010-06-03 20:54:08 -04:00
Mathias Stearn
464850bce3
Dont count failed records as imported
2010-06-03 18:37:45 -04:00
Mathias Stearn
a0ce62f1ea
--stopOnError option to mongoimport SERVER-1133
2010-06-03 18:17:26 -04:00
Mathias Stearn
124efbfd63
Add --port option to tools. SERVER-1157
2010-06-03 16:58:46 -04:00
Eliot Horowitz
307b6e86f6
Merge branch 'master' of github.com:mongodb/mongo
2010-06-03 16:51:13 -04:00
Eliot Horowitz
f7c05f5946
some nicer error messages
2010-06-03 16:50:51 -04:00
Mathias Stearn
7fc82df75e
Mongoimport now fails on invalid UTF8 SERVER-1171
2010-06-03 15:54:20 -04:00
Kenny Gorman
79e9558062
added flushes/s parameter.
2010-06-04 02:23:20 +08:00
Mathias Stearn
4cd8bf8291
Make mongoimport work w/o final EOL. SERVER-1152
2010-06-03 13:10:28 -04:00
Aaron
275d05f968
add objcheck option to sniffer
2010-05-27 16:03:08 -07:00
Eliot Horowitz
2ccc219102
can filter in mongorestore
2010-05-26 15:24:06 -04:00
Mathias Stearn
a0925e2b80
--upsert option to mongoimport SERVER-1154
2010-05-25 23:27:37 -04:00
Mathias Stearn
12a3059132
Hide password from ps output SERVER-1129
2010-05-24 16:56:10 -04:00
Mathias Stearn
d060bfb595
convert massert and uassert back to macros
2010-05-14 13:34:50 -04:00
Aaron
7efe88f445
SERVER-109 multi buffer message
2010-05-12 15:26:00 -07:00
Eliot Horowitz
435cdcea55
some typos SERVER-1103
2010-05-08 11:46:40 -04:00
Guillaume Delannoy
a8aab6f98a
All tools (including shell) take -p should allow it to be blank and do password input SERVER-764
2010-05-04 10:47:20 -04:00
Mathias Stearn
5d2ac5576d
Print newlines in mongofiles
2010-04-29 14:49:01 -04:00
Eliot Horowitz
2b1665670d
fix # and --fieldFile handling SERVER-1059
2010-04-27 16:17:35 -04:00
Dwight
bd28578ab8
stdafx->pch
2010-04-27 15:27:52 -04:00
Eliot Horowitz
98f7edd4cd
compile
2010-04-24 21:42:37 -04:00
Dwight Merriman
c4bd465042
towards 3
2010-04-24 18:25:58 -04:00
Dwight Merriman
0dd902e096
fix for tools
2010-04-24 15:04:35 -04:00
Eliot Horowitz
29b39b18de
support doing mongostat over http
2010-04-16 01:15:09 -04:00