HADOOP-10925. Compilation fails in native link0 function on Windows. Contributed by Chris Nauroth.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1615320 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Chris Nauroth 2014-08-02 15:02:23 +00:00
parent a41c314373
commit c614ceed84
2 changed files with 4 additions and 1 deletions

View File

@ -413,6 +413,9 @@ Trunk (Unreleased)
HADOOP-10920. site plugin couldn't parse hadoop-kms index.apt.vm.
(Akira Ajisaka via wang)
HADOOP-10925. Compilation fails in native link0 function on Windows.
(cnauroth)
OPTIMIZATIONS
HADOOP-7761. Improve the performance of raw comparisons. (todd)

View File

@ -1081,7 +1081,7 @@ done:
if (!src) goto done; // exception was thrown
dst = (LPCTSTR) (*env)->GetStringChars(env, jdst, NULL);
if (!dst) goto done; // exception was thrown
if (!CreateHardLink(dst, src)) {
if (!CreateHardLink(dst, src, NULL)) {
throw_ioe(env, GetLastError());
}