-
Type: Task
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
Use Case
As a... node driver engineer
I want... all admin operations to use async syntax
So that... the driver is closer to generating async stack traces
User Impact
This is an internal change
Dependencies
Unknowns
Acceptance Criteria
Implementation Requirements
- Admin operations to change:
- CreateCollectionOperation, DropCollectionOperation, DropDatabaseOperation, OptionsOperation, ProfilingLevelOperation, IsCappedOperation, RemoveUserOperation, RenameOperation, SetProfilingLevelOperation, DbStatsOperation, ValidateCollectionOperation
- For each operation:
- Change its superclass from CommandCallbackOperation/AbstractCallbackOperation to CommandOperation/AbstractOperation
- change executeCallback/executeCommandCallback to execute/executeCommand and return it, remove callback argument, and remove all uses of callback in the class
- call server.commandAsync instead of server.command and return it
Testing Requirements
- clean up operation test files if need be
Documentation Requirements
- None
Follow Up Requirements
- None