Unverified Commit f87034bd authored by Shaya Potter's avatar Shaya Potter Committed by GitHub
Browse files

[RR-158] add session member to raft_entry_t (#154)



enables users of libraft to group raft entries into sessions.
Co-authored-by: default avatarOzan Tezcan <ozantezcan@gmail.com>
parent 799754ab
......@@ -94,6 +94,9 @@ typedef struct raft_entry
/** the entry's unique ID */
raft_entry_id_t id;
/** session this entry belongs to **/
raft_session_t session;
/** type of entry */
int type;
......
......@@ -20,6 +20,11 @@ typedef long int raft_term_t;
*/
typedef long int raft_index_t;
/**
* Id used to group entries into sessions
*/
typedef unsigned long long raft_session_t;
/**
* Size type. This should be at least 64 bits.
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment