mirror of https://github.com/BOINC/boinc.git
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:
parent
a1406d23df
commit
e8a8a5f418
|
@ -377,7 +377,7 @@ int create_work2(
|
|||
);
|
||||
return retval;
|
||||
}
|
||||
wu.id = boinc_db.insert_id();
|
||||
wu.id = wu.db->insert_id();
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue