aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Strapp <strap012@umn.edu>2020-10-28 18:08:39 -0500
committerMatt Strapp <strap012@umn.edu>2020-10-28 18:08:39 -0500
commit6731bbbe1252568ff32d5fb9c1f2767d65b39633 (patch)
tree1f8f4754c8ec161342cefe18350f2f017772a0c3
parentAdd a close function (diff)
downloadcsci4061-6731bbbe1252568ff32d5fb9c1f2767d65b39633.tar
csci4061-6731bbbe1252568ff32d5fb9c1f2767d65b39633.tar.gz
csci4061-6731bbbe1252568ff32d5fb9c1f2767d65b39633.tar.bz2
csci4061-6731bbbe1252568ff32d5fb9c1f2767d65b39633.tar.lz
csci4061-6731bbbe1252568ff32d5fb9c1f2767d65b39633.tar.xz
csci4061-6731bbbe1252568ff32d5fb9c1f2767d65b39633.tar.zst
csci4061-6731bbbe1252568ff32d5fb9c1f2767d65b39633.zip
?
-rw-r--r--P2/lib/utils.c2
-rw-r--r--P2/src/mapreduce.c1
2 files changed, 1 insertions, 2 deletions
diff --git a/P2/lib/utils.c b/P2/lib/utils.c
index 8c27f4c..82f7a70 100644
--- a/P2/lib/utils.c
+++ b/P2/lib/utils.c
@@ -46,7 +46,7 @@ void sendChunkData(char *inputFile, int nMappers) {
// construct chunks of 1024 bytes
memset(message.msgText, '\0', MSGSIZE);
while(read(fd, message.msgText, chunkSize) != 0) {
- printf("%s\n", message.msgText);
+ // printf("%s\n", message.msgText);
/* Go to the end of the chunk, check if final character
is a space if character is a space, do nothing
else cut off before that word and put back file */
diff --git a/P2/src/mapreduce.c b/P2/src/mapreduce.c
index 7f87019..290c1c5 100644
--- a/P2/src/mapreduce.c
+++ b/P2/src/mapreduce.c
@@ -49,7 +49,6 @@ int main(int argc, char *argv[]) {
pid_t pid = fork();
if(pid == 0){
//send chunks of data to the mappers in RR fashion
- printf("TEST\n");
sendChunkData(inputFile, nMappers);
exit(0);
}