Merge pull request #16885 from keszybz/rework-cache-timestamps

Rework cache timestamps
This commit is contained in:
Anita Zhang
2020-08-31 23:21:12 -07:00
committed by GitHub
9 changed files with 64 additions and 49 deletions
+6
View File
@@ -6,6 +6,8 @@
#include <string.h>
#include <sys/types.h>
#include "time-util.h"
struct siphash {
uint64_t v0;
uint64_t v1;
@@ -25,6 +27,10 @@ static inline void siphash24_compress_boolean(bool in, struct siphash *state) {
siphash24_compress(&i, sizeof i, state);
}
static inline void siphash24_compress_usec_t(usec_t in, struct siphash *state) {
siphash24_compress(&in, sizeof in, state);
}
static inline void siphash24_compress_string(const char *in, struct siphash *state) {
if (!in)
return;