-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
capabilities: read capabilities is one-time job
I do not see any value in reading the capabilities every time a command kicks in, in fact this is a major bug. Say we are running a daemon of version X, in case if the gluster-block package is upgraded to version Y, then X capabilities file will be overridden by Y version capability file, even before restarting the daemon the gluster-blockd process of version X can return wrong capabilities of version Y. Also, we are adding delay in the gluster-blockd overall response by unnecessarily reading the capabilities on every command from the file. Tested-by: Xiubo Li <[email protected]> Reviewed-by: Xiubo Li <[email protected]> Reviewed-by: Pranith Kumar K <[email protected]> Signed-off-by: Prasanna Kumar Kalever <[email protected]> Signed-off-by: Xiubo Li <[email protected]>
- Loading branch information
Showing
4 changed files
with
67 additions
and
19 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
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