server: use correct DB connection in create_work()

A work generator can create and use its own DB connection.
Fix a bug in create_work() that incorrectly used the boinc_db connection
(which might not even be initialized).

Fixes #4032
This commit is contained in:
David Anderson 2024-08-08 14:59:21 -07:00 committed by Vitalii Koshura
parent a1406d23df
commit e8a8a5f418
No known key found for this signature in database
GPG Key ID: CE0DB1726070A5A3
1 changed files with 1 additions and 1 deletions

View File

@ -377,7 +377,7 @@ int create_work2(
);
return retval;
}
wu.id = boinc_db.insert_id();
wu.id = wu.db->insert_id();
}
return 0;