Description
Transaction & utils::internal::getTransaction(TSHttpTxn ats_txn_handle) { Transaction *transaction = static_cast<Transaction *>(TSHttpTxnArgGet(ats_txn_handle, TRANSACTION_STORAGE_INDEX)); if (!transaction) { transaction = new Transaction(static_cast<void *>(ats_txn_handle)); LOG_DEBUG("Created new transaction object at %p for ats pointer %p", transaction, ats_txn_handle); TSHttpTxnArgSet(ats_txn_handle, TRANSACTION_STORAGE_INDEX, transaction); } return *transaction; }
TRANSACTION_STORAGE_INDEX is hardcoded constant that is not allocated by TSHttpArgIndexReserve, so it is subject to collisions with other plugins.
Attachments
Issue Links
- breaks
-
TS-4880 RemapPlugin class doesn't work correctly
-
- Closed
-
- links to