1
0
mirror of git://jb55.com/damus synced 2024-10-04 19:00:42 +00:00

Fix profiles not updating

Timestamped IDs were not being initialized properly when writing profile
indices. This means that every profile was indexed with timestamp 0.
derp. Fix this!

Changelog-Fixed: Fix profiles not updating
This commit is contained in:
William Casarin 2023-10-06 10:40:35 -07:00
parent 7ecb9aad62
commit b1c7ef9bd9

View File

@ -391,7 +391,7 @@ static inline void ndb_tsid_init(struct ndb_tsid *key, unsigned char *id,
uint64_t timestamp)
{
memcpy(key->id, id, 32);
key->timestamp = 0;
key->timestamp = timestamp;
}
// useful for range-searching for the latest key with a clustered created_at timen