Skip to content
Snippets Groups Projects
Commit 1e65ffb4 authored by ajf5's avatar ajf5
Browse files

bug fix

parent 65b7c4d9
No related branches found
No related tags found
No related merge requests found
......@@ -873,8 +873,7 @@ void Node::handleTcpMessage()
}
case CHUNK: {
cout << "[CHUNK] " << "we will put sdfsfilename: " << inMsg[2] << " from chunk: " << inMsg[3];
cout << " to node " << inMsg[0] << endl;
cout << "[CHUNK] " << "we will put sdfsfilename: " << inMsg[2] << " from chunk: " << inMsg[3] << " to node " << inMsg[0] << endl;
int end = stoi(inMsg[3]) + T_maples;
string sendMsg = msg.payload + "::" + to_string(end);
this->tcpServent->pendSendMessages.push(sendMsg);
......
......@@ -29,7 +29,7 @@ void *runTcpSender(void *tcpSocket)
}
while (!tcp->pendSendMessages.empty()) {
vector<string> msgSplit = splitString(tcp->pendSendMessages.front(), "::");
if (msgSplit.size() == 5) {
if (msgSplit.size() >= 5) {
string nodeIP = msgSplit[0], localfilename = msgSplit[1], overwrite = msgSplit[4];
string sdfsfilename = msgSplit[2], remoteLocalfilename = msgSplit[3];
cout << "[DOSEND] nodeIP " << nodeIP << ", localfilename " << localfilename;
......
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