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/branches/branch-2@1361006 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Eli Collins 2012-07-12 23:53:12 +00:00
parent dce88a6dbc
commit c1c388bbb6
2 changed files with 4 additions and 1 deletions

View File

@ -128,6 +128,9 @@ Release 2.0.1-alpha - UNRELEASED
HDFS-3641. Move server Util time methods to common and use now HDFS-3641. Move server Util time methods to common and use now
instead of System#currentTimeMillis. (eli) instead of System#currentTimeMillis. (eli)
HDFS-3633. libhdfs: hdfsDelete should pass JNI_FALSE or JNI_TRUE.
(Colin Patrick McCabe via eli)
OPTIMIZATIONS OPTIMIZATIONS
HDFS-2982. Startup performance suffers when there are many edit log HDFS-2982. Startup performance suffers when there are many edit log

View File

@ -1455,7 +1455,7 @@ int hdfsDelete(hdfsFS fs, const char* path, int recursive)
//Delete the file //Delete the file
jvalue jVal; jvalue jVal;
jthrowable jExc = NULL; jthrowable jExc = NULL;
jboolean jRecursive = recursive; jboolean jRecursive = recursive ? JNI_TRUE : JNI_FALSE;
if (invokeMethod(env, &jVal, &jExc, INSTANCE, jFS, HADOOP_FS, if (invokeMethod(env, &jVal, &jExc, INSTANCE, jFS, HADOOP_FS,
"delete", "(Lorg/apache/hadoop/fs/Path;Z)Z", "delete", "(Lorg/apache/hadoop/fs/Path;Z)Z",
jPath, jRecursive) != 0) { jPath, jRecursive) != 0) {