aboutsummaryrefslogtreecommitdiffstats
path: root/P2/lib
diff options
context:
space:
mode:
authorMatt Strapp <strap012@umn.edu>2020-10-28 18:22:00 -0500
committerMatt Strapp <strap012@umn.edu>2020-10-28 18:22:00 -0500
commit7bc0681ceaaf455dd78431e3ba481e136abf813f (patch)
tree79d3b8a5cdc60b7d667f3b278d88848435aa0b28 /P2/lib
parentMerge pull request #13 from STRAP012/FixAlltheProblems (diff)
downloadcsci4061-7bc0681ceaaf455dd78431e3ba481e136abf813f.tar
csci4061-7bc0681ceaaf455dd78431e3ba481e136abf813f.tar.gz
csci4061-7bc0681ceaaf455dd78431e3ba481e136abf813f.tar.bz2
csci4061-7bc0681ceaaf455dd78431e3ba481e136abf813f.tar.lz
csci4061-7bc0681ceaaf455dd78431e3ba481e136abf813f.tar.xz
csci4061-7bc0681ceaaf455dd78431e3ba481e136abf813f.tar.zst
csci4061-7bc0681ceaaf455dd78431e3ba481e136abf813f.zip
Get rid of old comments and other faff
Diffstat (limited to 'P2/lib')
-rw-r--r--P2/lib/utils.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/P2/lib/utils.c b/P2/lib/utils.c
index 82f7a70..e23c735 100644
--- a/P2/lib/utils.c
+++ b/P2/lib/utils.c
@@ -24,10 +24,7 @@ char *getChunkData(int mapperID) {
//Queue ID
int mid = openQueue();
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);
return NULL;
}
char* value = message.msgText;
@@ -61,9 +58,6 @@ void sendChunkData(char *inputFile, int nMappers) {
for (int i = 1; i < nMappers; i++) {
struct msgBuffer END = {i, "END"};
msgsnd(msgid, &END, MSGSIZE, 0);
-
- // TODO! does this need to be in another loop or is blocking good enough?
- // msgrcv(msgid, &message, MSGSIZE, i, 0);
}
}
@@ -88,8 +82,6 @@ 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);
return 0;
} else {
return 1;