[
https://issues.apache.org/jira/browse/HDFS-10511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15324387#comment-15324387
]
Anatoli Shein commented on HDFS-10511:
--------------------------------------
Update:
we decided to go with the following:
0 on success (or other returned value specific to the function)
-1 on failure (and set errno globally)
> libhdfs++: make error returning mechanism consistent across all hdfs
> operations
> -------------------------------------------------------------------------------
>
> Key: HDFS-10511
> URL: https://issues.apache.org/jira/browse/HDFS-10511
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: hdfs-client
> Reporter: Anatoli Shein
> Assignee: Anatoli Shein
>
> Errno should always be set.
> If function is returning a code on stack, it should be consistent with errno.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]