From 04a2759376cac8bcbfa62406b5202fbcaaa0d945 Mon Sep 17 00:00:00 2001 From: afederici <ajf5@illinois.edu> Date: Wed, 18 Nov 2020 21:19:39 -0600 Subject: [PATCH] bug fix --- inc/MessageTypes.h | 2 -- src/TcpSocket.cpp | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/inc/MessageTypes.h b/inc/MessageTypes.h index bf49267..675bdf1 100644 --- a/inc/MessageTypes.h +++ b/inc/MessageTypes.h @@ -27,8 +27,6 @@ enum MessageType { JUICESTART, //send to master to initiate juice phase MAPLEACK, CHUNK, //send to nodes so they have information about what kind of get request to send - APPEND, //process get request and send an append request, need to add this to all replicas too. Check into blackout stuff - APPENDACK, CHUNKACK, //after append ack received, send this back to master to know when things are Done }; diff --git a/src/TcpSocket.cpp b/src/TcpSocket.cpp index 782ad3f..545d910 100644 --- a/src/TcpSocket.cpp +++ b/src/TcpSocket.cpp @@ -285,6 +285,10 @@ int TcpSocket::messageHandler(int sockfd, string payloadMessage, string returnIP case DNSGET: case DELETE: case GETNULL: + case MAPLESTART: + case MAPLEACK: + case CHUNK: + case CHUNKACK: case DNS:{ cout << "Type: " << msg.type << " payloadMessage: " << payloadMessage << endl; regMessages.push(payloadMessage); //handle from queue -- GitLab