Commit Graph

772 Commits

Author SHA1 Message Date
David Anderson 40d9368fdc remote job submission: let submitters specify that jobs
should run only on their own computers.
2024-04-01 16:04:54 -07:00
David Anderson 73fba33695 client/server/web: add 'Apple GPU' as an official GPU type.
For now, it's detected only via OpenCL (like Intel GPUs).
Eventually we'll detect via Metal as well.

Plan classes for Apple GPU must include 'apple_gpu' in their name.

The changes are mostly copy-and-paste of Intel GPU code.
I hate duplicate code but I don't know how to fix.
2024-01-28 01:41:12 -08:00
David Anderson 987bc5a703 Improve text related to weak auth (account key)
- in the page showing the weak auth,
  say that it depends on password and email addr
  (and make this page nicer looking)
- in the pages for changing password and email addr,
  say that doing so will change your weak auth.
2023-10-17 16:26:40 -07:00
Bernd Machenschalk ab33270c4a complete #5123 2023-10-16 10:47:35 +02:00
David Anderson a42eadad66 server (all components that use DB): don't use MYSQL_OPT_RECONNECT if deprecated
Starting with 8.0.34, the MySQL reconnection option is deprecated,
and using it produces a warning message.
So don't use it with MySQL 8.0.34 and later.

Note: this means that if the MySQL server dies,
long-running programs like the transitioner will stop working,
and you'll have to stop/start the project.
If this proves to be a problem, we could add our own reconnect logic.
2023-08-21 15:57:47 -07:00
Vitalii Koshura 44742026e2
Remove trailing whitespaces. Add CI script to verify in on every commit
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2023-05-05 20:08:17 +02:00
David Anderson 0f4960c6ba remove Bossa and Bolt files.
These aren't part of BOINC.  I moved them to new repos.
2023-04-16 12:18:25 -07:00
David Anderson 8ce3972e21 client and server: increase p_features size from 1024 to 8192.
1024 wasn't enough for some CPUs.
This caused some hosts to not get sse3 app versions, for example.

Note: ideally we'd change this to std::string.
But that would have disrupted the code that populates it
(hostinfo_unix.cpp, hostinfo_win.cpp).
Easier/safer to do it this way.
2023-03-02 14:10:16 -08:00
Vitalii Koshura 92a9b34e9c
[linux] Move all fcgi dependent stdio functions to the separate 'boinc_stdio.h' header only file
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2023-02-12 19:50:22 +01:00
Rytis Slatkevičius 75b7b640f6 Make DB_BASE::insert_id() correctly return numbers exceeding 32bits 2021-03-24 14:30:18 +02:00
David Anderson 6948c2d4f1 Allow invitation codes for create-account RPCs only
If you define INVITE_CODES_RPC, create-account RPCs must include
a matching invitation code.
Record this code in user.signature to keep track
of where the RPCs are coming from.
2021-01-19 18:48:51 -08:00
David Anderson bcd16e9bf6 Make DB work with MySQL 8.0
Change all tables to InnoDB.
It now supports fulltext indices.
2020-08-17 20:34:52 -07:00
Kevin Reed 8ae81c10d6
Merge pull request #3603 from stream1972/stream_for_merge
transitioner: Fix race condition with file_upload_handler
2020-05-11 09:50:54 -05:00
Kevin Reed 8fb90941c1
Merge pull request #3694 from hristog/fix-comments
Fix comment typos and remove an outdated todo.
2020-05-11 09:32:46 -05:00
Hristo Georgiev 159c63a4db Fix comment typos and remove an outdated todo. 2020-05-08 13:40:04 +01:00
David Anderson 28c57d6ae3 Server programs: try to print error message if can't connect to DB 2020-05-01 22:57:49 -07:00
Roman Trunov b3fb4c1134 transitioner: Fix race condition with file_upload_handler 2020-04-15 09:35:31 +03:00
Roman Trunov c206e93c7e db_purge: fix truncated mod_time data (field too small for timestamp) 2020-03-28 13:27:05 +03:00
James Molson 86cb25c12d Change my_bool to bool - see https://bugs.mysql.com/bug.php?id=85131 2019-07-11 16:39:08 +02:00
Christian Beer c68d906ac7 Server: initialize struct members
found by Coverity (CIDs 27931 27957 278928)
2019-05-29 20:50:25 +02:00
lfield fe8f0c51fe Added option to purge retired batches 2019-05-15 15:52:40 +02:00
Christian Beer d2442d13b8
Merge pull request #2630 from BOINC/dpa_trickle
server: add the ability to have > 1 stages of trickle handling
2019-02-02 10:56:03 +01:00
Vitalii Koshura 1ce3793c76
Remove unused BOINC_RCSID constants
This fixes #2953

Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2019-01-12 23:43:48 +02:00
David Anderson 9e58be90e1 scheduler: parse <wsl> and <wsl_available>
Currently these generate a server log error message.
TODO: add plan class support for WSL
2018-11-07 09:44:23 -08:00
Shawn Kwang 096fde11cf db: explicit add of delete restrict 2018-10-25 10:19:43 -05:00
Shawn Kwang b44a8c8455 db: Renamed database field 'protect' to 'project_specific' 2018-09-17 12:55:55 -05:00
Shawn Kwang 4cb30b1a8b Removed unnecessary primary_key from insert statements. 2018-09-17 12:55:50 -05:00
Shawn Kwang 14fad89838 db: Added SQL view to schema and db_update.php
This view represents the latest consent status of all users and all consent_type_ids. It is what is often needed for determining if a user ABC has consented to consent_type XYZ.
2018-09-13 10:41:16 -05:00
Shawn Kwang 4531d5644c db: Update index for consent table 2018-09-13 10:08:05 -05:00
Shawn Kwang fd3fb65047 fixed semicolons should be colons 2018-09-12 15:43:13 -05:00
Shawn Kwang cbce74df7c Merge branch 'master' into sak-useroptin-dbaddconsent
Prepare for merging this development branch into master.

Conflicts:
	html/ops/db_update.php
2018-09-12 11:48:25 -05:00
Christian Beer 3d91ec6c8f DB: move index from schema.sql to constraints.sql
As noted in the comment this is how it should be.

Signed-off-by: Shawn Kwang <kwangs@uwm.edu>
2018-09-12 11:43:53 -05:00
Shawn Kwang c4c2ae69ba Added additional index to consent table as well as foreign_key index. 2018-09-12 11:32:40 -05:00
Shawn Kwang d924bb2eee db: Add necessary DB_CONSENT_TYPE declarations to boinc_db 2018-09-07 11:44:54 -05:00
Kevin Reed 436409a40b server: Replace host index on userid with one based on userid and host_cpid 2018-09-07 10:10:03 -05:00
Shawn Kwang 59697b7929 db: Renamed database field 'protectedct' to 'protect'. 2018-08-31 13:58:28 -05:00
Shawn Kwang 06ba429ca4 db: Add consent_type table to C++ database API. 2018-08-28 13:24:20 -05:00
Shawn Kwang 74a545460a Modified variable 'protected' in consent_type table to be 'protectedct'. 'protected' is a reserve word in some languages: C++. 2018-08-28 12:41:44 -05:00
Kevin Reed 77f9078398 server - add indexes to host in order to make scheduler requests quick
for users with large number of devices (i.e at least 50k)
2018-08-23 15:10:48 -05:00
David Anderson 3e365013fb server: add the ability to have > 1 stages of trickle handling
Some projects (namely CPDN) need to process trickle-up messages
with two different daemons.
We do this as follows:
- daemon 1 enumerates messages with handled==0, and sets handled=1
- daemon 2 enumerates messages with handled==1, and sets handled=2
You can then purge records with handled==2

To implement this, trickle_handler.cpp has two global vars,
int handled_enum and int handled_set.
By default these are 0 and 1.
For daemon 2, set them to 1 and 2 in trickle_handler_init()
2018-08-02 12:32:51 -07:00
Shawn Kwang 431d8d6542 db: Modified database definitions for consent_type table.
Consent_type table uses id, and consent table now refers to consent_type_id instead of name.
Additionally, added index of consent_time to consent table.
2018-06-15 14:50:48 -05:00
Shawn Kwang cc6efacb8d db: Reorganize database changes, and add indices to new tables.
Added indices to consent and consent_type tables.
Moved initial content of consent_type table to new SQL file: content.sql
Modified database.py to insert new content.sql into database. In python autocommit is turned off by default, thus a manualy commit() was added.
Updated db_update.php to match changes in db/.
2018-06-12 12:08:26 -05:00
Shawn Kwang f1bff5b229 db: fixed schema.sql bugs found in review. 2018-06-11 09:52:53 -05:00
Shawn Kwang d6dd0945e9 web: Modified consent_type table with new fields.
Modified the consent_type table to include fields 'enabled' and 'privacypref'.
2018-06-01 13:24:10 -05:00
David Anderson 83b9de7b08
Merge pull request #2518 from BOINC/dpa_credit4
Server: add support for post-assigned credit
2018-05-28 17:32:15 -07:00
Shawn Kwang 4fa8a9faac web: Updated database, consent and consent_type tables.
Also updated boinc_db.inc to add delete_for_use and reflect new table definitions.
2018-05-24 12:00:00 -05:00
Shawn Kwang 039db259b5
Merge branch 'master' into sak-useroptin-dbaddconsent 2018-05-17 14:14:33 -05:00
Shawn Kwang 06e162ed9d web: added additional consent_type for data exports. 2018-05-17 10:29:13 -05:00
Kevin Reed 7ce2370160 db: change index names to not be shortened 2018-05-17 08:46:37 -05:00
Kevin Reed 328a901ff3 db: add indexes in support delete account 2018-05-16 15:38:34 -05:00