Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove exclusive transactions #23

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
2492b0c
Use lockfile instead of transaction to prevent processes from creatin…
mattmundell Feb 20, 2018
4de729e
Schedule tasks within a regular transaction, instead of an exclusive one
mattmundell Feb 22, 2018
925c691
Use a regular Postgres transaction for immediate transactions
mattmundell Feb 22, 2018
7af28f2
Use immediate instead of exclusive for NVT update
mattmundell Feb 22, 2018
497998c
Remove VACUUM lock
mattmundell Feb 22, 2018
f02de6a
Convert more of --optimize to immediate
mattmundell Feb 22, 2018
857f6c8
Convert the rest of --optimize to immediate
mattmundell Feb 23, 2018
e1abcc4
Use immediate when deleting user
mattmundell Feb 23, 2018
77da603
Remove header made static in 7af28f2
mattmundell Feb 26, 2018
44d7444
Lock table for Postgres when deleting report
mattmundell Feb 26, 2018
09b75e2
Lock table for Postgres when deleting reports
mattmundell Feb 26, 2018
6e3689d
Remove advisory locks, which were not effective
mattmundell Feb 26, 2018
1b57e83
Lock table for Postgres when deleting tasks
mattmundell Feb 28, 2018
37d15de
Lock table for Postgres when requesting task
mattmundell Mar 1, 2018
d76977d
Remove transaction option, no longer used
mattmundell Mar 1, 2018
67b0635
Use immediate, not exclusive, to modify config
mattmundell Mar 2, 2018
56fc2f6
Use lockfiles to control access at startup
mattmundell Mar 2, 2018
d4a53cd
Use immediate instead of exclusive locks
mattmundell Mar 2, 2018
b8c1c95
Disable unused exclusive functions for Postgres
mattmundell Mar 2, 2018
550b61e
Merge branch 'master' into remove-exclusive-transactions
mattmundell Mar 2, 2018
9019cce
Merge branch 'master' into remove-exclusive-transactions
timopollmeier Mar 8, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
289 changes: 237 additions & 52 deletions src/gvmd.c

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/manage.c
Original file line number Diff line number Diff line change
Expand Up @@ -6802,7 +6802,7 @@ manage_schedule (int (*fork_connection) (gvm_connection_t *, gchar *),

return ret;
}
/* This iterator runs in an exclusive transaction, so this loop is atomic. */
/* This iterator runs in a transaction. */
while (next (&schedules))
if (task_schedule_iterator_start_due (&schedules))
{
Expand Down
3 changes: 0 additions & 3 deletions src/manage.h
Original file line number Diff line number Diff line change
Expand Up @@ -1933,9 +1933,6 @@ nvts_feed_version ();
void
set_nvts_feed_version (const char*);

nvt_t
make_nvt_from_nvti (const nvti_t*);

gboolean
find_nvt (const char*, nvt_t*);

Expand Down
Loading