diff options
author | Sunitha Harish <sunithaharish04@gmail.com> | 2024-04-06 11:35:34 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2024-04-18 18:40:57 +0300 |
commit | 56d0bb068b69c5b8853e44d7af179030adcacd64 (patch) | |
tree | e769e86e2ccc3a76cd2930130e7cc4f6eeeecca6 /include/sessions.hpp | |
parent | 8db83747b6ea72de30ac83f19578ecc37489b13d (diff) | |
download | bmcweb-56d0bb068b69c5b8853e44d7af179030adcacd64.tar.xz |
Remove ibm locks feature
This feature was introduced to manage the operation sync at BMC while
multiple clients manage the BMC.
This feature scope has gone away and it is not a simple code to maintain
as per the growing standards of bmcweb.
This commit removes the feature from this repo.
Tested by: Locks routes are not available anymore
Change-Id: I257225cfb1f43d7d5dadb21a28a2ee5345c5112a
Signed-off-by: Sunitha Harish <sunithaharish04@gmail.com>
Signed-off-by: Ed Tanous <ed@tanous.net>
Diffstat (limited to 'include/sessions.hpp')
-rw-r--r-- | include/sessions.hpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/include/sessions.hpp b/include/sessions.hpp index fb7276212c..1d0b620fb1 100644 --- a/include/sessions.hpp +++ b/include/sessions.hpp @@ -11,9 +11,6 @@ #include <csignal> #include <optional> #include <random> -#ifdef BMCWEB_ENABLE_IBM_MANAGEMENT_CONSOLE -#include "ibm/locks.hpp" -#endif namespace persistent_data { @@ -310,9 +307,6 @@ class SessionStore void removeSession(const std::shared_ptr<UserSession>& session) { -#ifdef BMCWEB_ENABLE_IBM_MANAGEMENT_CONSOLE - crow::ibm_mc_lock::Lock::getInstance().releaseLock(session->uniqueId); -#endif authTokens.erase(session->sessionToken); needWrite = true; } @@ -396,10 +390,6 @@ class SessionStore if (timeNow - authTokensIt->second->lastUpdated >= timeoutInSeconds) { -#ifdef BMCWEB_ENABLE_IBM_MANAGEMENT_CONSOLE - crow::ibm_mc_lock::Lock::getInstance().releaseLock( - authTokensIt->second->uniqueId); -#endif authTokensIt = authTokens.erase(authTokensIt); needWrite = true; |