Skip to content
Snippets Groups Projects
Commit 4eab34f3 authored by ajf5's avatar ajf5
Browse files

bug fix

parent 40d67913
No related branches found
No related tags found
No related merge requests found
......@@ -829,7 +829,7 @@ void Node::handleTcpMessage()
if (workers > hashRing->nodePositions.size()-1) workers = hashRing->nodePositions.size()-1;
int total_lines = 0;
vector<tuple<string,int>> directory;
cout << "[DIRECTORY]" << endl;
cout << "[DIRECTORY] " << sdfs_dir << endl;
for (auto &e: fileSizes){
cout << e.first << " | " << to_string(get<1>(e.second));
if (strncmp(e.first.c_str(), sdfs_dir.c_str(), sdfs_dir.size()) == 0){
......
......@@ -173,7 +173,7 @@ int main(int argc, char *argv[])
continue;
}
if (!node->isBlackout){
string msg = cmdLineInput[1] + "::" + cmdLineInput[2] + "::" + cmdLineInput[3] + "::" + cmdLineInput[4] + "\n";
string msg = cmdLineInput[1] + "::" + cmdLineInput[2] + "::" + cmdLineInput[3] + "::" + cmdLineInput[4];
Messages outMsg(MAPLESTART, msg);
cout << "[MAPLE] forwarding request to " << node->leaderIP << endl;
node->tcpServent->sendMessage(node->leaderIP, TCPPORT, outMsg.toString());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment