[
https://issues.apache.org/jira/browse/TS-3881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15108889#comment-15108889
]
ASF GitHub Bot commented on TS-3881:
------------------------------------
GitHub user sudheerv opened a pull request:
https://github.com/apache/trafficserver/pull/429
[TS-3881] Fix inconsistent return value and method name.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/apache/trafficserver ts3881
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/trafficserver/pull/429.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #429
----
commit 96ae1b7b42e590aabdec4f19586ae6f0fbe0719c
Author: Sudheer Vinukonda <[email protected]>
Date: 2016-01-20T16:46:25Z
[TS-3881] Fix inconsistent return value and method name.
----
> New TS API TSHttpTxnInfoIntGet.
> -------------------------------
>
> Key: TS-3881
> URL: https://issues.apache.org/jira/browse/TS-3881
> Project: Traffic Server
> Issue Type: New Feature
> Components: TS API
> Affects Versions: 6.1.0
> Reporter: Sudheer Vinukonda
> Assignee: Sudheer Vinukonda
> Fix For: 6.1.0
>
>
> I started off trying to write a TSHttpTxnCacheStateGet API to return cache
> lookup specific details, but, based on feed back on the IRC and dev@,
> changing the API to a more generic interface TSHttpTxnInfoIntGet to return
> any arbitrary info. The idea is to be able to use this API in the long term
> to support any arbitrary information related to a Txn (which can be used as
> the underlying piece for a framework to return txn info using custom log
> tags).
> Below's the proposal with the info I'd like the new API return along with the
> API signature.
> Please provide comments/suggestions.
> {code}
> +typedef enum {
> + TS_TXN_INFO_CACHE_HIT_RAM,
> + TS_TXN_INFO_COMPRESSED_IN_RAM,
> + TS_TXN_INFO_CACHE_HIT_RWW, // READ_WHILE_WRITE
> + TS_TXN_INFO_CACHE_OPEN_READ_TRIES,
> + TS_TXN_INFO_CACHE_OPEN_WRITE_TRIES,
> + TS_TXN_INFO_CACHE_VOLUME,
> + TS_TXN_INFO_LAST_ENTRY
> +} TSHttpTxnInfoKey;
> +
> +/* Get Arbitrary Txn info such as cache lookup details etc as defined in
> TSHttpTxnInfoKey */
> +/**
> + Return the particular txn info requested.
> +
> + @param txnp the transaction pointer
> + @param key the requested txn info.
> + @param TSMgmtInt a pointer to a integer where the return value is stored
> +
> + @return @c TS_SUCCESS if the requested info is supported, TS_ERROR
> otherwise
> +
> +*/
> +tsapi TSReturnCode TSHttpTxnInfoIntGet(TSHttpTxn txnp, TSHttpTxnInfoKey key,
> TSMgmtInt *value);
> +
> {code}
> +
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)