Paul A. Parkanzky
04fa04a413
Omit empty build_info elm on mongodb output
...
Fixes CEN-817
2018-09-25 11:41:07 -04:00
Paul A. Parkanzky
122f945fb1
MongoDB - fix isMaster message length check.
...
Needs to account for OP_REPLY header
2018-09-14 16:09:36 -04:00
Paul A. Parkanzky
bb9324e00d
BSON tag is case sensitive - s/isMaster/ismaster
2018-08-29 16:45:27 -04:00
Paul A. Parkanzky
1a1aa96793
Put upper limit on buffer size alloc
2018-08-28 16:13:35 -04:00
Paul A. Parkanzky
a7ddf61d74
Fix possible index error on malformed msg
2018-08-28 14:34:18 -04:00
Paul A. Parkanzky
d9aec0ae40
Improve partial results for mongodb scanner
...
* Separate out isMaster and buildInfo commands
* Return results of both in separate sub-structs
* Include isMaster results regardless of whether buildInfo succeeds
2018-08-22 11:49:17 -04:00
Paul A. Parkanzky
68bb3e9790
Return appropriate short write error
2018-08-21 17:08:01 -04:00
Paul A. Parkanzky
7419796cfc
Address more PR comments
...
* Add error message to invalid BSON log msg
* Use snake case for json output
* Update affect integration tests
2018-08-21 16:34:35 -04:00
Paul A. Parkanzky
8b9c23f122
Fix typo and integration test which tested for it
2018-08-21 16:01:40 -04:00
Paul A. Parkanzky
f891880db4
Make some PR-requested changes
...
* Generate static messages in Scanner Init()
* s/panic/log.Fatal/
* Remove unnecessary casting
* Use stack var and pass slice to avoid unnecessary alloc
2018-08-21 14:51:48 -04:00
Paul A. Parkanzky
2f316b2242
Add mongodb integration tests.
2018-08-21 13:11:34 -04:00
Paul A. Parkanzky
72cbe9ae63
Add support for mongodb >= 4.1
2018-08-20 16:16:05 -04:00
Paul A. Parkanzky
becec08234
Call the wrapped Write() method.
2018-08-17 15:17:26 -04:00
Paul A. Parkanzky
784a186b39
Add MongoDB scanner.
2018-08-17 12:04:38 -04:00