-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Optimized "gvmd --get-users" and "gvmd --get-roles" command.
Optimized the "gvmd --get-users" and the "gvmd --get-roles" command by skipping the update of the nvti cache in those cases. Also added a retry loop around "lockfile_lock_nb (...)" so that commands like "gvmd --get-users" don't fail if another gvmd process is starting up.
- Loading branch information
1 parent
3dffad6
commit a9d72d6
Showing
5 changed files
with
57 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -144,6 +144,8 @@ manage_reset_currents (); | |
|
||
/* Commands. */ | ||
|
||
#define MAX_LOCK_RETRIES 16 | ||
|
||
/** | ||
* @brief A command. | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters