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

289 Commits

Author SHA1 Message Date
Eliot Horowitz
84dc801b60 use SlaveOk for doing counts SERVER-450 2009-12-02 16:56:49 -05:00
Eliot Horowitz
c919b7feec init fix 2009-11-28 17:43:33 -05:00
Eliot Horowitz
e0dff0748a mongoimport take --headerline for csv,tsv SERVER-444 2009-11-28 17:29:23 -05:00
Eliot Horowitz
2e23773bf9 fix csv parsing with escaped fields SERVER-441 2009-11-28 11:19:51 -05:00
Eliot Horowitz
415f5e7fa8 more error handling 2009-11-27 23:30:31 -05:00
Eliot Horowitz
bed8ba812b fix assertion SERVER-433 2009-11-21 21:31:37 -05:00
Mathias Stearn
3e269473da mongofiles put --replace 2009-11-20 01:57:52 -05:00
Eliot Horowitz
ca785a0400 BDONObjBuilder::apendAsNumber
better fix for SERVER-423
2009-11-13 21:07:15 -05:00
Eliot Horowitz
02dfcf62e7 fix import with long long SERVER-424 2009-11-13 20:41:36 -05:00
Eliot Horowitz
d1057d5a9d clean trailing spaces when importing json SERVER-402 2009-11-02 09:52:58 -05:00
Eliot Horowitz
91e18dc16b tool cleaning 2009-10-27 11:44:22 -04:00
Eliot Horowitz
feb2a40d5f use lexical_cast instead of atoll b/c of windows 2009-10-21 14:17:58 -04:00
Eliot Horowitz
b446a74aec use long long for long int strings 2009-10-21 14:04:31 -04:00
Dwight
01f1f6915d move CurOp into Client and make inprog handle multiple in progress 2009-10-16 15:36:34 -04:00
Mathias Stearn
468b56691b add delete command to mongofiles 2009-10-14 18:19:14 -04:00
Mathias Stearn
23bbf840ba add uploadDate and contentType fields to GridFS files generated in C++. Add --type option to mongofiles. 2009-10-14 17:43:18 -04:00
Mathias Stearn
b7a086e1ad mongofiles now supports stdin/out for put/get operations 2009-10-14 17:43:18 -04:00
Eliot Horowitz
46fc3058c8 Merge branch 'master' of git@github.com:mongodb/mongo 2009-10-12 15:24:57 -04:00
Eliot Horowitz
1b27e7aae7 --ignoreBlanks option for import 2009-10-12 15:24:38 -04:00
Dwight
68b99ea200 Merge branch 'master' of git@github.com:mongodb/mongo 2009-10-12 15:21:41 -04:00
Dwight
81a73d0f63 compile 2009-10-12 15:21:30 -04:00
Eliot Horowitz
fcd3220d16 add option to read fields from a file 2009-10-12 15:05:42 -04:00
Eliot Horowitz
65fb01f015 debugging for import 2009-10-11 20:24:12 -04:00
Eliot Horowitz
8a6dfdc9e9 cleaning tool debugging/tests 2009-10-09 22:11:15 -04:00
Eliot Horowitz
503d45411b Connection::initThread 2009-10-09 20:58:41 -04:00
Eliot Horowitz
0496aa5ac7 changed mongoimportJSON to mongoimport - handles json/tsv/csv 2009-10-09 14:55:29 -04:00
Eliot Horowitz
35bb22d27e _id index is created automatically now 2009-10-09 13:48:57 -04:00
Eliot Horowitz
a54742b3de make mongoimportjson not crash with small objects, some ProgressMeter enhancements SERVER-342 2009-10-08 10:11:26 -04:00
Eliot Horowitz
27fd0a7a9f more ProgressMeter to public place 2009-10-05 15:09:18 -04:00
Mike Dirolf
c000bcaafd allow restoring a single collection to a different collection name 2009-09-29 17:11:31 -04:00
Mike Dirolf
c5985d6892 mongofiles: --local option to specify different filename on local filesystem than on GridFS 2009-09-24 16:31:18 -04:00
Mike Dirolf
a4d00f78d3 make restore directory a positional argument 2009-09-24 12:05:32 -04:00
Mike Dirolf
ee9b2ea7ea allow mongorestore to restore a single .bson file 2009-09-24 12:05:31 -04:00
Mike Dirolf
f6852db36b minor: whitespace 2009-09-24 12:05:31 -04:00
Eliot Horowitz
46000ef2d4 nice progress meters for dump/restore SERVER-307 2009-09-24 11:17:03 -04:00
Eliot Horowitz
01e1564c03 casing 2009-09-24 11:02:00 -04:00
Eliot Horowitz
a74cdf759d lowercase 2009-09-24 11:00:16 -04:00
Eliot Horowitz
524956f52a replace posix file write ops with ostream 2009-09-23 10:30:40 -04:00
Mike Dirolf
76c4935a58 mongorestore: can specify db to restore to (only when restoring a directory containing a single databases files) 2009-09-15 17:03:03 -04:00
Mike Dirolf
adeafb1d49 restore: use default arg instead of positional for dump directory. check for valid directory before drilling down 2009-09-15 17:03:03 -04:00
Eliot Horowitz
265af2d1f9 restore can import 64-bit data files with 32-bit mongorestore SERVER-141 2009-09-15 13:48:26 -04:00
Eliot Horowitz
8d07d50c48 fix embedded fields in export SERVER-293 2009-09-13 06:58:00 -04:00
Mike Dirolf
c03fe0d5c5 mongodump: move default argument to options declaration so it shows up in help text 2009-09-11 14:33:10 -04:00
Mike Dirolf
bf5faae277 minor: whitespace 2009-09-11 14:15:28 -04:00
Mike Dirolf
eae40d3e62 minor: mongofiles more clear docs 2009-09-11 14:14:31 -04:00
Eliot Horowitz
fdc8d61ba3 print hex of id also 2009-09-11 13:23:22 -04:00
Mike Dirolf
64a1af2b42 mongoexport: copy fields argument before parsing 2009-09-10 11:01:37 -04:00
Mike Dirolf
4cc0e11834 tools: support for -vvvv, use same options style as mongod and mongo 2009-09-01 16:52:50 -04:00
Mike Dirolf
71f76d998c add hidden_options to Tool.cpp - better help message for mongofiles 2009-09-01 16:27:08 -04:00
Mike Dirolf
0bbc36fae3 minor: more whitespace 2009-09-01 15:53:31 -04:00
Mike Dirolf
fd2a19c1bc tools: make output nicer on program options errors 2009-09-01 15:51:17 -04:00
Mike Dirolf
2df6ddd566 minor: whitespace 2009-09-01 15:43:23 -04:00
Eliot Horowitz
e88425081d make read buffer bigger SERVER-265 2009-08-26 12:22:48 -04:00
Eliot Horowitz
38bb9b15c2 when doing a dump from a replica pair, do it from the slave SERVER-169 2009-08-12 16:55:18 -04:00
Eliot Horowitz
016d49ffd2 auth support for tools SERVER-147 2009-08-12 16:31:22 -04:00
Eliot Horowitz
a5b2286039 don't need execinfo in bridge at all MINOR 2009-08-12 15:50:35 -04:00
Mike Dirolf
172cec88a6 check for NOEXECINFO for mongobridge as well 2009-08-12 15:34:39 -04:00
Eliot Horowitz
886e5b605d almost made sniff compile on WIN32 MINOR 2009-08-11 17:17:23 -04:00
Eliot Horowitz
c13927d6d3 another sniff win attempt MINOR 2009-08-11 17:14:15 -04:00
Eliot Horowitz
2dc836fbb8 try to fix win32 compile MINOR 2009-08-11 17:09:01 -04:00
Eliot Horowitz
be7ff8eadd use DBClientPaired when given , servers 2009-08-11 13:35:59 -04:00
Eliot Horowitz
043f15bbd7 use $snapshot for dump/export tools SERVER-226 2009-08-11 10:50:02 -04:00
Mike Dirolf
04d1d87a5f towards mongosniff on windows with winpcap 2009-08-07 17:02:47 -04:00
Eliot Horowitz
d7551c2925 possibly fix / 0 - verbose 2009-07-13 14:10:16 -04:00
Eliot Horowitz
3806a9dfff verbose MINOR 2009-07-13 14:09:43 -04:00
Eliot Horowitz
b3303c0708 / 0 safety 2009-07-13 13:48:08 -04:00
Eliot Horowitz
8371ce3872 nicer error message 2009-07-13 13:44:03 -04:00
Eliot Horowitz
86c5028dca fix 64-bit mongorestore 2009-07-13 11:24:43 -04:00
Eliot Horowitz
9d928c0e7a catch exceptions in Tool::main so tools don't abort SERVER-137 2009-07-10 10:59:30 -04:00
Eliot Horowitz
bd018f61d5 long instead of int for file size 2009-07-09 16:56:34 -04:00
Eliot Horowitz
77a1a11579 freebsd warning MINOR 2009-07-02 09:27:03 -04:00
Eliot Horowitz
1c099e789f make -c work for mongodump 2009-06-28 23:26:34 -04:00
Mike Dirolf
6f2a2dda8c mongoimport: default to stdin 2009-06-25 16:45:48 -04:00
Mike Dirolf
39c11c8283 importjson: show help text for bad arguments 2009-06-25 16:40:39 -04:00
Mike Dirolf
97fe2a9177 minor: help text 2009-06-25 16:17:42 -04:00
Mike Dirolf
c8c17ed3eb print help if you don't give a namespace 2009-06-25 16:15:15 -04:00
Mike Dirolf
efe8911ecc minor: whitespace 2009-06-25 16:11:38 -04:00
Mike Dirolf
dc0681edad sniffer check args length to avoid segfault w/ bad args - print error from underlying pcap calls 2009-06-25 11:56:39 -04:00
Mike Dirolf
45133d2f25 whitespace 2009-06-25 11:26:56 -04:00
Eliot Horowitz
dba174cb19 work around assert in mmap 2009-06-11 12:32:19 -04:00
Eliot Horowitz
7d9befe0e0 a little more info for query diagnostics MINOR 2009-06-03 17:07:49 -04:00
Aaron
c03a7186cf file allocator compile windows MINOR 2009-05-28 12:59:27 -04:00
Aaron
c5ffd65fb2 mongobridge close client ports on kill 2009-05-20 14:16:14 -04:00
Aaron
3b2ae5b7fb close mongobridge's listener socket when program killed 2009-05-20 14:07:10 -04:00
Aaron
333dbae272 adjust help formatting MINOR 2009-05-20 12:19:33 -04:00
Aaron
3aa95556bd better message when root missing MINOR 2009-05-20 12:15:41 -04:00
Aaron
11ae38a6ff use file allocator to allow writes in Tools MINOR 2009-05-20 12:15:26 -04:00
Aaron
85c396b10c Merge branch 'master' of git@github.com:mongodb/mongo 2009-05-20 11:39:22 -04:00
Aaron
da7a9b3f71 make tools capable of running standalone, without a mongod instance 2009-05-20 11:39:12 -04:00
Aaron
6516e72042 add option to output to file 2009-05-20 11:28:55 -04:00
Aaron
6c0692a900 tool log 'connected' message to stderr 2009-05-18 14:45:37 -04:00
Aaron
774f8ec70c stub createDirectClient for tools MINOR 2009-05-14 13:19:13 -04:00
Aaron
691629143c adjust dependencies MINOR 2009-05-11 15:09:30 -04:00
Aaron
7d720f1f33 add 'bind_ip' option to bind listener only to requested local interface 2009-04-29 14:14:51 -04:00
Eliot Horowitz
8c52cd0903 export needs to use jsonString, not toString 2009-04-13 17:37:35 -04:00
Aaron
fd780da9b6 fix warnings 2009-04-03 15:59:13 -04:00
Mike Dirolf
4f5a8d52f4 whitespace 2009-04-03 10:48:26 -04:00
Aaron
b372835b91 bridge retry connect 2009-04-02 17:58:18 -04:00
Aaron
3bca999156 Add mongobridge 2009-04-02 15:10:52 -04:00
Aaron
5a276ef621 Replace emptyObj with BSONObj() 2009-03-19 16:23:04 -04:00
Dwight
7165d7369e implemented dropIndexes for alt rec store 2009-03-17 17:02:21 -04:00
Aaron
dc197ff71a Remap cursor id on forward 2009-03-10 15:06:47 -04:00
Aaron
7e2bb88e77 Cleaner 2009-03-10 10:18:40 -04:00
Aaron
db9a5968f2 sniffer enhancements: Parse additional message types, detect dropped packets, detect unexpected message encapsulation, option to forward captured messages, option to read from tcpdump file, etc 2009-03-09 18:33:56 -04:00
Eliot Horowitz
7bca09b9f9 fix gridfs - can't use BSONElement for strage like that
also did md5 while i was there
2009-02-18 11:26:30 -05:00
Eliot Horowitz
9c1bb93462 safety 2009-02-14 09:42:05 -05:00
Eliot Horowitz
e4e3997402 enough sniffing functionality to work with mongos - more to do 2009-02-13 17:42:27 -05:00
Aaron
ec5c8cf8e4 Remove compiler warning 2009-02-13 16:53:32 -05:00
Eliot Horowitz
343076f346 most of a mongo protocol sniffer 2009-02-13 16:18:57 -05:00
Mike Dirolf
fc618d7165 spelling 2009-02-11 13:52:51 -05:00
Mike Dirolf
d3b02bde34 whitespace 2009-02-11 13:52:28 -05:00
U-ELIOT-019992DFC\Administrator
853736071c include for windows 2009-02-10 10:48:41 -05:00
Dwight
147948c7b3 doneAndDecouple() -> obj() 2009-02-09 13:04:32 -05:00
Eliot Horowitz
992fc7d84c change file name 2009-02-09 11:24:21 -05:00
Eliot Horowitz
6f78b4ae5e remove the EOF check - too aggressive 2009-02-09 10:55:59 -05:00
Eliot Horowitz
eb4b70d16e npe equiv 2009-02-03 21:00:05 -05:00
Eliot Horowitz
8098043bb8 list enhancements and search and better help 2009-02-02 22:16:46 -05:00
Eliot Horowitz
288d83370d gridfs and some tools 2009-02-02 17:19:55 -05:00
Eliot Horowitz
7442bdf4e4 export to json/csv tool 2009-02-02 12:17:20 -05:00
Eliot Horowitz
ff7573c65a option for creating an index before or ater import 2009-02-02 09:28:43 -05:00
yellow
c4e874bed7 don't try to import files of size 0 2009-01-31 21:46:47 +00:00
yellow
51ae720798 slave ok for doing dumps 2009-01-31 21:39:45 +00:00
Dwight
dcf90d4def sort() for c++ client 2009-01-29 18:38:35 -05:00
Eliot Horowitz
fc4ce49781 put logging back 2009-01-29 13:53:19 -05:00
Eliot Horowitz
5e64eb609a fixes and timing 2009-01-29 13:51:42 -05:00
Eliot Horowitz
d4c82212f8 mongoimportjson 2009-01-29 13:01:45 -05:00
Eliot Horowitz
d02aa49e35 make run return and that is what the binary exits with 2009-01-29 11:56:44 -05:00
Eliot Horowitz
ba0da24261 made import use new Tool class 2009-01-27 21:37:56 -05:00
Eliot Horowitz
d71cb1d7d2 moving to unified Tool system 2009-01-27 15:16:09 -05:00
Aaron
261a467aa5 Replaced our #defined cout with mongo::out() 2009-01-15 11:26:38 -05:00
Aaron
90d45238aa Indent all lines within namespaces one level 2009-01-15 10:17:11 -05:00
Aaron
248a6dd8de Replace tab indentation with spaces 2009-01-14 17:17:24 -05:00
Aaron
ad1f6b3cbd Put our code in 'mongo' namespace 2009-01-14 17:09:51 -05:00
Eliot Horowitz
67419db7d1 nicer messages 2009-01-12 10:30:04 -05:00
Eliot Horowitz
27ef7c544d import 2009-01-11 23:02:19 -05:00
Eliot Horowitz
06d8ca3b50 typo 2009-01-11 20:22:38 -05:00
Eliot Horowitz
6184c2086b fix param parsing 2009-01-10 13:22:18 -05:00
Eliot Horowitz
f867ea1a11 typo 2008-12-29 17:59:44 -05:00
Eliot Horowitz
53b68d1b60 fast db binary dump 2008-12-29 17:52:45 -05:00