Fix error message for cache already in standby detach state

Signed-off-by: Piotr Debski <piotr.debski@intel.com>
This commit is contained in:
Piotr Debski
2022-08-17 11:42:44 +02:00
parent 13984c976a
commit 9273b39d5d
3 changed files with 9 additions and 2 deletions

View File

@@ -2296,7 +2296,7 @@ int cache_mngt_standby_detach(struct kcas_standby_detach *cmd)
cache_priv = ocf_cache_get_priv(cache);
if (!cache_priv->cache_exp_obj_initialized) {
result = -KCAS_ERR_DETACHED;
result = -KCAS_ERR_STANDBY_DETACHED;
goto out_cache_put;
}