aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrea Smith <smit9523@umn.edu>2020-10-24 12:15:46 -0500
committerAndrea Smith <smit9523@umn.edu>2020-10-24 12:15:46 -0500
commit5d6f824c0977a82f28e3f7be44c4abd56cacef1a (patch)
tree961bd5bb3d5f9137e9b1fa4733e7d79dbb6e1245
parentsendChunkData (diff)
downloadcsci4061-5d6f824c0977a82f28e3f7be44c4abd56cacef1a.tar
csci4061-5d6f824c0977a82f28e3f7be44c4abd56cacef1a.tar.gz
csci4061-5d6f824c0977a82f28e3f7be44c4abd56cacef1a.tar.bz2
csci4061-5d6f824c0977a82f28e3f7be44c4abd56cacef1a.tar.lz
csci4061-5d6f824c0977a82f28e3f7be44c4abd56cacef1a.tar.xz
csci4061-5d6f824c0977a82f28e3f7be44c4abd56cacef1a.tar.zst
csci4061-5d6f824c0977a82f28e3f7be44c4abd56cacef1a.zip
sendChunk
-rw-r--r--P2/lib/utils.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/P2/lib/utils.c b/P2/lib/utils.c
index dffade8..79b309e 100644
--- a/P2/lib/utils.c
+++ b/P2/lib/utils.c
@@ -5,19 +5,6 @@ char *getChunkData(int mapperID) {
// sends chunks of size 1024 to the mappers in RR fashion
void sendChunkData(char *inputFile, int nMappers) {
- msgBuffer message;
- key_t key;
- int msgid;
-
- // open message queue
- msgid = msgget(key, 0666 | IPC_CREAT);
- message -> msgText = 1;
- FILE *fptr = fopen(inputFile, "r");
-
- // construct chunks of 1024 bytes
- while(fgets(message, chunkSize, fptr) != EOF) {
-
- }
}
// hash function to divide the list of word.txt files across reducers