Skip to content
Snippets Groups Projects
Commit ecb5a1b1 authored by zf4's avatar zf4
Browse files

test

parent 206614cd
No related branches found
No related tags found
No related merge requests found
......@@ -53,6 +53,8 @@ var spoutInput string
var craneOutput string
var fd *os.File
var debugCount int
// ---- end spout var definitions ----
// StartMaster - Master starts here
......@@ -66,6 +68,7 @@ func StartMaster() {
// InitializeCraneMaster - initialize the master
func InitializeCraneMaster() {
debugCount = 0
fd = nil
needRestart = false
isWorking = false
......@@ -439,7 +442,11 @@ func handleWorkerConnection(conn net.Conn) {
// TODO: Process data
// fmt.Println(*data)
saveData(data.Tuple)
debugCount += 1
if debugCount%10000 == 0 {
fmt.Println(debugCount)
}
//saveData(data.Tuple)
}
}
conn.Close()
......
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