diff options
Diffstat (limited to 'src/mongo/db/storage/ticketholders.h')
-rw-r--r-- | src/mongo/db/storage/ticketholders.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mongo/db/storage/ticketholders.h b/src/mongo/db/storage/ticketholders.h index 31fdfb8db32..cdaee0f7315 100644 --- a/src/mongo/db/storage/ticketholders.h +++ b/src/mongo/db/storage/ticketholders.h @@ -45,6 +45,8 @@ public: static Status updateConcurrentReadTransactions(const int& newReadTransactions); + static TicketHolders& get(ServiceContext* svcCtx); + static TicketHolders& get(ServiceContext& svcCtx); /** * Sets the TicketHolder implementation to use to obtain tickets from 'reading' (for MODE_S and * MODE_IS), and from 'writing' (for MODE_IX) in order to throttle database access. There is no @@ -62,9 +64,4 @@ private: std::unique_ptr<TicketHolder> _openReadTransaction; }; -/** - * Decorated accessor to the 'TicketHolders' stored in 'ServiceContext'. - */ -extern const Decorable<ServiceContext>::Decoration<TicketHolders> ticketHoldersDecoration; - } // namespace mongo |