Commit Graph

41 Commits

Author SHA1 Message Date
Eliot Horowitz
142a86b237 net cleaning: move message.* to net/
net cleaning: move http tools to net/
2011-06-26 17:13:54 -04:00
Dwight
473a982fab small sniffer improvements 2011-06-21 13:22:59 -04:00
Eliot Horowitz
f70b49ddef compile 2011-05-09 23:59:14 -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
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
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
b828d21630 ran astyle SERVER-2304 2011-01-04 00:40:41 -05:00
Dwight
b2e6ff04bc compile? 2010-09-09 10:17:02 -04:00
Alberto Lerner
f51a4d0669 SERVER-1270 Hook StringData to BufBuilder 2010-07-19 09:56:24 -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
275d05f968 add objcheck option to sniffer 2010-05-27 16:03:08 -07: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
98f7edd4cd compile 2010-04-24 21:42:37 -04:00
Dwight Merriman
c4bd465042 towards 3 2010-04-24 18:25:58 -04:00
Mathias Stearn
f35ab906b1 mongosniff: add DIAGLOG option to help. 2010-03-16 12:26:26 -04:00
Eliot Horowitz
16ee2d34de mongosniff can forward diaglog files 2010-03-16 11:47:35 -04:00
Mathias Stearn
0bf045c2e1 remove some manual free()s and mixed new/free() 2010-02-12 22:17:31 -05:00
Richard Kreuter
b96e4b2976 Add license headers to .cpp & .h files that lacked them. MINOR 2010-02-09 16:48:21 -05:00
Eliot Horowitz
0ab8149a8e uassert/massert take error code SERVER-112 2009-12-28 16:43:43 -05:00
Eliot Horowitz
bed8ba812b fix assertion SERVER-433 2009-11-21 21:31:37 -05:00
Eliot Horowitz
fdc8d61ba3 print hex of id also 2009-09-11 13:23:22 -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
Mike Dirolf
04d1d87a5f towards mongosniff on windows with winpcap 2009-08-07 17:02:47 -04:00
Eliot Horowitz
77a1a11579 freebsd warning MINOR 2009-07-02 09:27:03 -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
7d9befe0e0 a little more info for query diagnostics MINOR 2009-06-03 17:07:49 -04:00
Aaron
fd780da9b6 fix warnings 2009-04-03 15:59:13 -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
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