From 7e7e37bc4b76a8a981f8d31fd6f5e5529a47f231 Mon Sep 17 00:00:00 2001 From: harrand Date: Sat, 23 Mar 2024 00:12:42 +0000 Subject: [PATCH] [data_store] datastore remove no longer asserts on the thing already existing. its silly and makes the api pointlessly aggressive --- src/tz/core/data/data_store.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tz/core/data/data_store.cpp b/src/tz/core/data/data_store.cpp index 42a1161d9c..84e59eed2d 100644 --- a/src/tz/core/data/data_store.cpp +++ b/src/tz/core/data/data_store.cpp @@ -37,7 +37,7 @@ namespace tz { TZ_PROFZONE("data_store - remove", 0xFF3377AA); std::unique_lock ulock(this->mtx); - tz::assert(this->contains_nolock(remove.key), "remove called on %s, which does not exist in the datastore", remove.key.data()); + //tz::assert(this->contains_nolock(remove.key), "remove called on %s, which does not exist in the datastore", remove.key.data()); this->store.erase(remove.key); }