Use more conventional field order in Mutation

This commit is contained in:
2024-06-03 13:26:27 -07:00
parent a3591ebdb8
commit 9e90d5aadf
7 changed files with 20 additions and 20 deletions

View File

@@ -14,9 +14,9 @@ void monotonicallyIncreasing() {
const int64_t remove = __builtin_bswap64(facade.getVersion() - kWindow);
const int64_t next = __builtin_bswap64(facade.getVersion());
weaselab::VersionedMap::Mutation mutations[] = {
{(const uint8_t *)&remove, nullptr, 8, 0,
{(const uint8_t *)&remove, 8, nullptr, 0,
weaselab::VersionedMap::Clear},
{(const uint8_t *)&next, (const uint8_t *)&next, 8, 8,
{(const uint8_t *)&next, 8, (const uint8_t *)&next, 8,
weaselab::VersionedMap::Set},
};
facade.addMutations(mutations, sizeof(mutations) / sizeof(mutations[0]),