(operation, context)
| 618 | const ADMIN_COMMANDS = new Set(['listDatabases']); |
| 619 | |
| 620 | function maybeSession(operation, context) { |
| 621 | return ( |
| 622 | operation && |
| 623 | operation.arguments && |
| 624 | operation.arguments.session && |
| 625 | context[operation.arguments.session] |
| 626 | ); |
| 627 | } |
| 628 | |
| 629 | function withoutCommandMonitoring(client, fn) { |
| 630 | const listeners = client.rawListeners('commandStarted'); |