Send durability timeout in network byte ordering
This was being sent in host byte ordering before, which
failed on some platforms.
Tested-by: Ellis Breen
Tested-by: Build Bot
@@ -481,7 +481,7 @@ static lcb_STATUS store_impl(uint32_t cid, lcb_INSTANCE *instance, void *cookie,
scmd.message.body.alt.flags = htonl(cmd->flags);
scmd.message.body.alt.meta = (1 << 4) | 3;
scmd.message.body.alt.level = cmd->durability.sync.dur_level;
- scmd.message.body.alt.timeout = lcb_durability_timeout(instance);
+ scmd.message.body.alt.timeout = htons(uint16_t(lcb_durability_timeout(instance)));
} else {
scmd.message.body.norm.expiration = htonl(cmd->exptime);
scmd.message.body.norm.flags = htonl(cmd->flags);
