@@ -25,7 +25,7 @@ import {
2525import type { MongoClient , MongoOptions } from './mongo_client' ;
2626import { TypedEventEmitter } from './mongo_types' ;
2727import { executeOperation } from './operations/execute_operation' ;
28- import { RetryContext } from './operations/operation' ;
28+ import { RetryAttemptContext } from './operations/operation' ;
2929import { RunCommandOperation } from './operations/run_command' ;
3030import { ReadConcernLevel } from './read_concern' ;
3131import { ReadPreference } from './read_preference' ;
@@ -494,14 +494,14 @@ export class ClientSession
494494 command . recoveryToken = this . transaction . recoveryToken ;
495495 }
496496
497- const retryContext = new RetryContext ( 5 ) ;
497+ const retryContext = new RetryAttemptContext ( 5 ) ;
498498
499499 const operation = new RunCommandOperation ( new MongoDBNamespace ( 'admin' ) , command , {
500500 session : this ,
501501 readPreference : ReadPreference . primary ,
502502 bypassPinningCheck : true
503503 } ) ;
504- operation . retryContext = retryContext ;
504+ operation . attempts = retryContext ;
505505
506506 const timeoutContext =
507507 this . timeoutContext ??
@@ -531,7 +531,7 @@ export class ClientSession
531531 readPreference : ReadPreference . primary ,
532532 bypassPinningCheck : true
533533 } ) ;
534- op . retryContext = retryContext ;
534+ op . attempts = retryContext ;
535535 await executeOperation ( this . client , op , timeoutContext ) ;
536536 return ;
537537 } catch ( retryCommitError ) {
0 commit comments