summaryrefslogtreecommitdiffstats
path: root/src/libnetdata/query_progress/progress.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-11-25 17:33:56 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-11-25 17:34:10 +0000
commit83ba6762cc43d9db581b979bb5e3445669e46cc2 (patch)
tree2e69833b43f791ed253a7a20318b767ebe56cdb8 /src/libnetdata/query_progress/progress.c
parentReleasing debian version 1.47.5-1. (diff)
downloadnetdata-83ba6762cc43d9db581b979bb5e3445669e46cc2.tar.xz
netdata-83ba6762cc43d9db581b979bb5e3445669e46cc2.zip
Merging upstream version 2.0.3+dfsg (Closes: #923993, #1042533, #1045145).
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/libnetdata/query_progress/progress.c')
-rw-r--r--src/libnetdata/query_progress/progress.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/libnetdata/query_progress/progress.c b/src/libnetdata/query_progress/progress.c
index 10e083e0c..157f20f11 100644
--- a/src/libnetdata/query_progress/progress.c
+++ b/src/libnetdata/query_progress/progress.c
@@ -8,7 +8,7 @@
// hashtable for HASHED_KEY
// cleanup hashtable defines
-#include "../simple_hashtable_undef.h"
+#include "../simple_hashtable/simple_hashtable_undef.h"
struct query;
#define SIMPLE_HASHTABLE_VALUE_TYPE struct query
@@ -16,7 +16,7 @@ struct query;
#define SIMPLE_HASHTABLE_NAME _QUERY
#define SIMPLE_HASHTABLE_VALUE2KEY_FUNCTION query_transaction
#define SIMPLE_HASHTABLE_COMPARE_KEYS_FUNCTION query_compare_keys
-#include "../simple_hashtable.h"
+#include "../simple_hashtable/simple_hashtable.h"
// ----------------------------------------------------------------------------
@@ -76,12 +76,7 @@ static struct progress {
};
SIMPLE_HASHTABLE_HASH query_hash(nd_uuid_t *transaction) {
- struct uuid_hi_lo_t {
- uint64_t hi;
- uint64_t lo;
- } *parts = (struct uuid_hi_lo_t *)transaction;
-
- return parts->lo;
+ return XXH3_64bits(transaction, sizeof(*transaction));
}
static void query_progress_init_unsafe(void) {