aboutsummaryrefslogtreecommitdiff
path: root/src/zenstore/cache/structuredcachestore.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2024-08-23 14:20:10 +0200
committerGitHub Enterprise <[email protected]>2024-08-23 14:20:10 +0200
commit64f07faa75811ef21d18f78db75242f00499c808 (patch)
treee2f4d0957650f3afc20554b50346bb7a9c2d0894 /src/zenstore/cache/structuredcachestore.cpp
parentv5.5.5 (diff)
downloadzen-64f07faa75811ef21d18f78db75242f00499c808.tar.xz
zen-64f07faa75811ef21d18f78db75242f00499c808.zip
Make sure `noexcept` functions does not leak exceptions (#136)
Diffstat (limited to 'src/zenstore/cache/structuredcachestore.cpp')
-rw-r--r--src/zenstore/cache/structuredcachestore.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/zenstore/cache/structuredcachestore.cpp b/src/zenstore/cache/structuredcachestore.cpp
index d7d594af7..9981aa1eb 100644
--- a/src/zenstore/cache/structuredcachestore.cpp
+++ b/src/zenstore/cache/structuredcachestore.cpp
@@ -159,9 +159,9 @@ ZenCacheNamespace::EndPutBatch(PutBatchHandle* Batch) noexcept
m_DiskLayer.EndPutBatch(Batch->DiskLayerHandle);
delete Batch;
}
- catch (std::exception& Ex)
+ catch (const std::exception& Ex)
{
- ZEN_ERROR("Exception in cache namespace layer when ending batch put operation: '{}'", Ex.what());
+ ZEN_ERROR("Exception in ZenCacheNamespace::EndPutBatch: '{}'", Ex.what());
}
}
@@ -203,9 +203,9 @@ ZenCacheNamespace::EndGetBatch(GetBatchHandle* Batch) noexcept
}
delete Batch;
}
- catch (std::exception& Ex)
+ catch (const std::exception& Ex)
{
- ZEN_ERROR("Exception in cache namespace layer when ending batch put operation: '{}'", Ex.what());
+ ZEN_ERROR("Exception in ZenCacheNamespace::EndGetBatch: '{}'", Ex.what());
}
}
@@ -570,7 +570,7 @@ ZenCacheStore::PutBatch::~PutBatch()
m_Store->EndPutBatch(m_NamespaceBatchHandle);
}
}
- catch (std::exception& Ex)
+ catch (const std::exception& Ex)
{
ZEN_ERROR("Exception in cache store when ending batch put operation: '{}'", Ex.what());
}
@@ -607,7 +607,7 @@ ZenCacheStore::GetBatch::~GetBatch()
}
}
}
- catch (std::exception& Ex)
+ catch (const std::exception& Ex)
{
ZEN_ERROR("Exception in cache store when ending batch get operation: '{}'", Ex.what());
}