Skip to content

Commit

Permalink
Fix dbbug (kubeflow#98)
Browse files Browse the repository at this point in the history
* fix worker_lastlog

Signed-off-by: YujiOshima <yuji.oshima0x3fd@gmail.com>

* fix

Signed-off-by: YujiOshima <yuji.oshima0x3fd@gmail.com>

* fix test

Signed-off-by: YujiOshima <yuji.oshima0x3fd@gmail.com>
  • Loading branch information
YujiOshima authored and k8s-ci-robot committed Jun 1, 2018
1 parent 49d1bef commit 872d83e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/db/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ func (d *db_conn) StoreWorkerLogs(worker_id string, logs []string) error {
return lasterr
}
if len(ls) == 2 {
_, err = d.db.Exec("REPLACE INTO trial_lastlogs VALUES (?, ?, ?)",
_, err = d.db.Exec("REPLACE INTO worker_lastlogs VALUES (?, ?, ?)",
worker_id, formatted_time, ls[1])
}
return err
Expand Down

0 comments on commit 872d83e

Please sign in to comment.