aboutsummaryrefslogtreecommitdiffstats
path: root/P2/lib
diff options
context:
space:
mode:
authorMatt Strapp <strap012@umn.edu>2020-11-03 09:21:03 -0600
committerMatt Strapp <strap012@umn.edu>2020-11-03 09:21:03 -0600
commitb63f67c335c572f8973173029423c79df0411b3b (patch)
tree6a4892d5527da87ef64abb8e21e2a3589b4d5bbc /P2/lib
parentFix dir traversal maybe????? (diff)
downloadcsci4061-b63f67c335c572f8973173029423c79df0411b3b.tar
csci4061-b63f67c335c572f8973173029423c79df0411b3b.tar.gz
csci4061-b63f67c335c572f8973173029423c79df0411b3b.tar.bz2
csci4061-b63f67c335c572f8973173029423c79df0411b3b.tar.lz
csci4061-b63f67c335c572f8973173029423c79df0411b3b.tar.xz
csci4061-b63f67c335c572f8973173029423c79df0411b3b.tar.zst
csci4061-b63f67c335c572f8973173029423c79df0411b3b.zip
MAybe truly traverse directories
Diffstat (limited to '')
-rw-r--r--P2/lib/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/P2/lib/utils.c b/P2/lib/utils.c
index c7f752d..92cfbec 100644
--- a/P2/lib/utils.c
+++ b/P2/lib/utils.c
@@ -97,7 +97,6 @@ void shuffle(int nMappers, int nReducers) {
for (int i = 1; i <= nMappers; i++) {
char newpath[100];
sprintf(newpath, "%s/output/MapOut/Map_%d", path, i);
- printf("%s\n", newpath);
DIR *dir = opendir(newpath);
struct dirent* entry;
while ((entry = readdir(dir)) != NULL) {
@@ -105,6 +104,7 @@ void shuffle(int nMappers, int nReducers) {
continue;
sprintf(message.msgText, "%s/%s", newpath, entry -> d_name);
message.msgType = hashFunction(entry -> d_name, nReducers);
+ printf("%s\n", message.msgText);
printf("%ld\n", message.msgType);
msgsnd(id, &message, chunkSize, 0);
}