aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-05-30 14:52:14 +0200
committerdec05eba <dec05eba@protonmail.com>2020-08-18 23:25:46 +0200
commita0ad4a551ac98f3eca055b4f9ad57b2de85d8b11 (patch)
tree90affb572ceceae315b51a84fa0182734cead344 /include
parentb3cb8b5424def316cac96f4827ef1692acb0adad (diff)
Add flag for data loaded from cache
Diffstat (limited to 'include')
-rw-r--r--include/odhtdb/Database.hpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/include/odhtdb/Database.hpp b/include/odhtdb/Database.hpp
index 5ec0da0..85207a0 100644
--- a/include/odhtdb/Database.hpp
+++ b/include/odhtdb/Database.hpp
@@ -55,12 +55,14 @@ namespace odhtdb
u64 timestamp; // In microseconds
const Signature::PublicKey *creatorPublicKey;
const DataView groupId;
+ bool loadedFromCache;
DatabaseCreateNodeRequest(const Hash *_nodeHash, u64 _timestamp, const Signature::PublicKey *_creatorPublicKey, const DataView &_groupId) :
nodeHash(_nodeHash),
timestamp(_timestamp),
creatorPublicKey(_creatorPublicKey),
- groupId(_groupId)
+ groupId(_groupId),
+ loadedFromCache(false)
{
}
@@ -75,13 +77,15 @@ namespace odhtdb
u64 timestamp; // In microseconds
const Signature::PublicKey *creatorPublicKey;
const DataView decryptedData;
+ bool loadedFromCache;
DatabaseAddNodeRequest(const Hash *_nodeHash, const Hash *_requestHash, u64 _timestamp, const Signature::PublicKey *_creatorPublicKey, const DataView &_decryptedData) :
nodeHash(_nodeHash),
requestHash(_requestHash),
timestamp(_timestamp),
creatorPublicKey(_creatorPublicKey),
- decryptedData(_decryptedData)
+ decryptedData(_decryptedData),
+ loadedFromCache(false)
{
}
@@ -97,6 +101,7 @@ namespace odhtdb
const Signature::PublicKey *creatorPublicKey;
const Signature::PublicKey *userToAddPublicKey;
const DataView groupToAddUserTo;
+ bool loadedFromCache;
DatabaseAddUserRequest(const Hash *_nodeHash, const Hash *_requestHash, u64 _timestamp, const Signature::PublicKey *_creatorPublicKey, const Signature::PublicKey *_userToAddPublicKey, const DataView &_groupToAddUserTo) :
nodeHash(_nodeHash),
@@ -104,7 +109,8 @@ namespace odhtdb
timestamp(_timestamp),
creatorPublicKey(_creatorPublicKey),
userToAddPublicKey(_userToAddPublicKey),
- groupToAddUserTo(_groupToAddUserTo)
+ groupToAddUserTo(_groupToAddUserTo),
+ loadedFromCache(false)
{
}