This commit is contained in:
shoopea 2020-10-20 11:34:56 +02:00
parent f96b90e91c
commit 4ba545864f

10
sql.go
View File

@ -962,10 +962,10 @@ func getSQLListID64(q string) []int64 {
func cleanupJobData() { func cleanupJobData() {
var ( var (
jobID int64 jobID int64
count int64 count int64
countDeleted int64 countObjDeleted int64
isDone int isDone int
) )
jobStmt, err := db.Prepare(`SELECT o.id FROM obj o WHERE o.obj_type_id = ` + strconv.FormatInt(cacheObjType[`job`], 10) + `;`) jobStmt, err := db.Prepare(`SELECT o.id FROM obj o WHERE o.obj_type_id = ` + strconv.FormatInt(cacheObjType[`job`], 10) + `;`)
@ -1040,7 +1040,7 @@ func cleanupJobData() {
count += 1 count += 1
} }
log.Printf("cleanupJobData : %d jobs scanned, %d obj deleted\n", count, countDeleted) log.Printf("cleanupJobData : %d jobs scanned, %d obj deleted\n", count, countObjDeleted)
/* /*
for _, id := range ids { for _, id := range ids {