Skip to content

Commit 872d83e

Browse files
YujiOshimak8s-ci-robot
authored andcommitted
Fix dbbug (#98)
* fix worker_lastlog Signed-off-by: YujiOshima <[email protected]> * fix Signed-off-by: YujiOshima <[email protected]> * fix test Signed-off-by: YujiOshima <[email protected]>
1 parent 49d1bef commit 872d83e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/db/interface.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ func (d *db_conn) StoreWorkerLogs(worker_id string, logs []string) error {
621621
return lasterr
622622
}
623623
if len(ls) == 2 {
624-
_, err = d.db.Exec("REPLACE INTO trial_lastlogs VALUES (?, ?, ?)",
624+
_, err = d.db.Exec("REPLACE INTO worker_lastlogs VALUES (?, ?, ?)",
625625
worker_id, formatted_time, ls[1])
626626
}
627627
return err

0 commit comments

Comments
 (0)