summaryrefslogtreecommitdiff
path: root/src/database/include/database.hpp
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-09-04 11:19:34 +1000
committerjacqueline <me@jacqueline.id.au>2023-09-04 11:19:34 +1000
commit6d831fa7a8c50e15424814fd2be1dd3951e06a4f (patch)
tree59372f07f632685a4b4fa836a09e191ff25574e9 /src/database/include/database.hpp
parent697d231484e83fd6697a23406818a3a4ec85c588 (diff)
downloadtangara-fw-6d831fa7a8c50e15424814fd2be1dd3951e06a4f.tar.gz
Don't reuse iterators across page fetches
This was done for performance reasons, but performance seems okay without it, and it introduces a bunch of memory management headaches.
Diffstat (limited to 'src/database/include/database.hpp')
-rw-r--r--src/database/include/database.hpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/database/include/database.hpp b/src/database/include/database.hpp
index 559405cb..00704a5f 100644
--- a/src/database/include/database.hpp
+++ b/src/database/include/database.hpp
@@ -33,7 +33,6 @@ namespace database {
template <typename T>
struct Continuation {
- std::shared_ptr<std::unique_ptr<leveldb::Iterator>> iterator;
std::string prefix;
std::string start_key;
bool forward;