HDFS-3633. libhdfs: hdfsDelete should pass JNI_FALSE or JNI_TRUE. Contributed by Colin Patrick McCabe
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1361005 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6a59f08a15
commit
e2318c2895
|
@ -307,6 +307,9 @@ Branch-2 ( Unreleased changes )
|
|||
HDFS-3641. Move server Util time methods to common and use now
|
||||
instead of System#currentTimeMillis. (eli)
|
||||
|
||||
HDFS-3633. libhdfs: hdfsDelete should pass JNI_FALSE or JNI_TRUE.
|
||||
(Colin Patrick McCabe via eli)
|
||||
|
||||
OPTIMIZATIONS
|
||||
|
||||
HDFS-2982. Startup performance suffers when there are many edit log
|
||||
|
|
|
@ -1455,7 +1455,7 @@ int hdfsDelete(hdfsFS fs, const char* path, int recursive)
|
|||
//Delete the file
|
||||
jvalue jVal;
|
||||
jthrowable jExc = NULL;
|
||||
jboolean jRecursive = recursive;
|
||||
jboolean jRecursive = recursive ? JNI_TRUE : JNI_FALSE;
|
||||
if (invokeMethod(env, &jVal, &jExc, INSTANCE, jFS, HADOOP_FS,
|
||||
"delete", "(Lorg/apache/hadoop/fs/Path;Z)Z",
|
||||
jPath, jRecursive) != 0) {
|
||||
|
|
Loading…
Reference in New Issue