summary refs log tree commit diff
path: root/src/Cache_p.h
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2023-01-07 01:09:36 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2023-01-07 01:09:36 +0100
commitf3b7919a534c8758c26836a81cf20ce49d045daa (patch)
tree1a8efec8e85de9f3b80a7e4d8fb45d2a37a33f41 /src/Cache_p.h
parentMerge pull request #1212 from ZhymabekRoman/master (diff)
downloadnheko-f3b7919a534c8758c26836a81cf20ce49d045daa.tar.xz
Fix crash in migrations during secrets deletion
We need to block the migrations returning until the migrations are done.

Fixes #1258
Diffstat (limited to 'src/Cache_p.h')
-rw-r--r--src/Cache_p.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Cache_p.h b/src/Cache_p.h
index 69d0240e..306194de 100644
--- a/src/Cache_p.h
+++ b/src/Cache_p.h
@@ -332,7 +332,8 @@ private:
     void loadSecretsFromStore(
       std::vector<std::pair<std::string, bool>> toLoad,
       std::function<void(const std::string &name, bool internal, const std::string &value)>
-        callback);
+        callback,
+      bool databaseReadyOnFinished = false);
     void storeSecretInStore(const std::string name, const std::string secret);
     void deleteSecretFromStore(const std::string name, bool internal);