aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Strapp <strap012@umn.edu>2020-10-28 14:47:22 -0500
committerMatt Strapp <strap012@umn.edu>2020-10-28 14:47:22 -0500
commitdd7ea113dfd6f10739d3b16858c0628ed69175f0 (patch)
treef4a2d4c5b71fa240b8c8ba48ec9bbd4190ce629b
parentMake new branch (diff)
downloadcsci4061-dd7ea113dfd6f10739d3b16858c0628ed69175f0.tar
csci4061-dd7ea113dfd6f10739d3b16858c0628ed69175f0.tar.gz
csci4061-dd7ea113dfd6f10739d3b16858c0628ed69175f0.tar.bz2
csci4061-dd7ea113dfd6f10739d3b16858c0628ed69175f0.tar.lz
csci4061-dd7ea113dfd6f10739d3b16858c0628ed69175f0.tar.xz
csci4061-dd7ea113dfd6f10739d3b16858c0628ed69175f0.tar.zst
csci4061-dd7ea113dfd6f10739d3b16858c0628ed69175f0.zip
Get rid of ACJK
Diffstat (limited to '')
-rw-r--r--P2/lib/utils.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/P2/lib/utils.c b/P2/lib/utils.c
index cef81b1..c698005 100644
--- a/P2/lib/utils.c
+++ b/P2/lib/utils.c
@@ -19,8 +19,8 @@ char *getChunkData(int mapperID) {
msgrcv(mid, &message, sizeof(message.msgText), mapperID, 0);
/*IMPLEMENT END AND ACK SOON*/
if (strncmp("END", message.msgText, 3)) {
- struct msgBuffer ACK = {mapperID, "ACK"};
- msgsnd(mid, &ACK, MSGSIZE, 0);
+ // struct msgBuffer ACK = {mapperID, "ACK"};
+ // msgsnd(mid, &ACK, MSGSIZE, 0);
return NULL;
}
char* value = message.msgText;
@@ -81,8 +81,8 @@ int getInterData(char *Qkey, int reducerID) {
Qkey = message.msgText;
if (strncmp("END", message.msgText, 3))
{
- struct msgBuffer ACK = {reducerID, "ACK"};
- msgsnd(id, &ACK, MSGSIZE, 0);
+ // struct msgBuffer ACK = {reducerID, "ACK"};
+ // msgsnd(id, &ACK, MSGSIZE, 0);
return 0;
} else {
return 1;