You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2014/05/14 00:53:17 UTC

[jira] [Commented] (TS-2619) TSRecordDump has a bad declaration

    [ https://issues.apache.org/jira/browse/TS-2619?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13997015#comment-13997015 ] 

ASF subversion and git services commented on TS-2619:
-----------------------------------------------------

Commit 87cd3131bef13d8ed0330a8e6e019f4e1da9fc1d in trafficserver's branch refs/heads/master from [~jlaue]
[ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=87cd313 ]

TS-2619: Changed TSRecordDump declaration from TSRecordType to int to accomodate bitmasks. Also changed TSRecordType enums to hexidecimal, as this is easier to read for bit arguments.


> TSRecordDump has a bad declaration
> ----------------------------------
>
>                 Key: TS-2619
>                 URL: https://issues.apache.org/jira/browse/TS-2619
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: TS API
>            Reporter: James Peach
>            Assignee: Phil Sorber
>            Priority: Blocker
>             Fix For: 5.0.0
>
>
> {{TSRecordDump}} is declared as taking a {{TSRecordType}} constant. However, this API also is defined to be able to operate on a {{TSRecordType}} bit mask. When you do this, you get the following compiler error:
> {code}
> /opt/ats/include/ts/ts.h|3083 col 14| note: candidate function not viable: no known conversion from 'int' to 'TSRecordType' for 1st argument                                                                 
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)