hadoop-mapreduce-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yhema...@apache.org
Subject svn commit: r892153 - in /hadoop/mapreduce/trunk: CHANGES.txt src/c++/task-controller/task-controller.c
Date Fri, 18 Dec 2009 06:31:24 GMT
Author: yhemanth
Date: Fri Dec 18 06:31:21 2009
New Revision: 892153

URL: http://svn.apache.org/viewvc?rev=892153&view=rev
Log:
MAPREDUCE-1284. Fix fts_open() call in task-controller that was failing LinuxTaskController
unit tests. Contributed by Ravi Gummadi.

Modified:
    hadoop/mapreduce/trunk/CHANGES.txt
    hadoop/mapreduce/trunk/src/c++/task-controller/task-controller.c

Modified: hadoop/mapreduce/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/mapreduce/trunk/CHANGES.txt?rev=892153&r1=892152&r2=892153&view=diff
==============================================================================
--- hadoop/mapreduce/trunk/CHANGES.txt (original)
+++ hadoop/mapreduce/trunk/CHANGES.txt Fri Dec 18 06:31:21 2009
@@ -1027,3 +1027,7 @@
 
     MAPREDUCE-1222. Add an option to exclude numeric IP addresses in topologies
     processed by Mumak. (Hong Tang via cdouglas)
+
+    MAPREDUCE-1284. Fix fts_open() call in task-controller that was failing
+    LinuxTaskController unit tests. (Ravi Gummadi via yhemanth)
+

Modified: hadoop/mapreduce/trunk/src/c++/task-controller/task-controller.c
URL: http://svn.apache.org/viewvc/hadoop/mapreduce/trunk/src/c%2B%2B/task-controller/task-controller.c?rev=892153&r1=892152&r2=892153&view=diff
==============================================================================
--- hadoop/mapreduce/trunk/src/c++/task-controller/task-controller.c (original)
+++ hadoop/mapreduce/trunk/src/c++/task-controller/task-controller.c Fri Dec 18 06:31:21 2009
@@ -272,7 +272,7 @@
     mode_t file_mode, mode_t dir_mode) {
   FTS *tree = NULL; // the file hierarchy
   FTSENT *entry = NULL; // a file in the hierarchy
-  char *paths[] = { (char *) path };
+  char *paths[] = { (char *) path, NULL };//array needs to be NULL-terminated
   int process_path = 0;
   int dir = 0;
   int error_code = 0;



Mime
View raw message