diff options
Diffstat (limited to 'src/mongo/db/auth/user_cache_invalidator_job.cpp')
-rw-r--r-- | src/mongo/db/auth/user_cache_invalidator_job.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mongo/db/auth/user_cache_invalidator_job.cpp b/src/mongo/db/auth/user_cache_invalidator_job.cpp index a9198b52fe9..707fcb59e17 100644 --- a/src/mongo/db/auth/user_cache_invalidator_job.cpp +++ b/src/mongo/db/auth/user_cache_invalidator_job.cpp @@ -90,11 +90,11 @@ public: } exportedIntervalParam; -StatusWith<OID> getCurrentCacheGeneration(OperationContext* txn) { +StatusWith<OID> getCurrentCacheGeneration(OperationContext* opCtx) { try { BSONObjBuilder result; - const bool ok = grid.catalogClient(txn)->runUserManagementReadCommand( - txn, "admin", BSON("_getUserCacheGeneration" << 1), &result); + const bool ok = grid.catalogClient(opCtx)->runUserManagementReadCommand( + opCtx, "admin", BSON("_getUserCacheGeneration" << 1), &result); if (!ok) { return getStatusFromCommandResult(result.obj()); } @@ -117,8 +117,8 @@ UserCacheInvalidator::~UserCacheInvalidator() { wait(); } -void UserCacheInvalidator::initialize(OperationContext* txn) { - StatusWith<OID> currentGeneration = getCurrentCacheGeneration(txn); +void UserCacheInvalidator::initialize(OperationContext* opCtx) { + StatusWith<OID> currentGeneration = getCurrentCacheGeneration(opCtx); if (currentGeneration.isOK()) { _previousCacheGeneration = currentGeneration.getValue(); return; @@ -157,8 +157,8 @@ void UserCacheInvalidator::run() { break; } - auto txn = cc().makeOperationContext(); - StatusWith<OID> currentGeneration = getCurrentCacheGeneration(txn.get()); + auto opCtx = cc().makeOperationContext(); + StatusWith<OID> currentGeneration = getCurrentCacheGeneration(opCtx.get()); if (!currentGeneration.isOK()) { if (currentGeneration.getStatus().code() == ErrorCodes::CommandNotFound) { warning() << "_getUserCacheGeneration command not found on config server(s), " |