summary refs log tree commit diff
path: root/src/Cache.cc
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-06-17 18:44:04 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-06-17 18:44:04 +0300
commit197b2dac748563f99de4a941a59e795dc759cca0 (patch)
tree93f4eea1f9c5b8bc64a1052a1dffef25a635c4de /src/Cache.cc
parentSetup BinTray (diff)
downloadnheko-197b2dac748563f99de4a941a59e795dc759cca0.tar.xz
Fix regressions regarding invites & slowness during shutdown
Diffstat (limited to 'src/Cache.cc')
-rw-r--r--src/Cache.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Cache.cc b/src/Cache.cc

index 41a759ab..397dd05f 100644 --- a/src/Cache.cc +++ b/src/Cache.cc
@@ -900,7 +900,8 @@ Cache::getRoomInfo(const std::vector<std::string> &rooms) { std::map<QString, RoomInfo> room_info; - auto txn = lmdb::txn::begin(env_, nullptr, MDB_RDONLY); + // TODO This should be read only. + auto txn = lmdb::txn::begin(env_); for (const auto &room : rooms) { lmdb::val data;