Skip to content

Commit 6ba7cd1

Browse files
jeffhostetlerdscho
authored andcommitted
status: add comments for ahead_behind_flags in serialization
The "ahead_behind_flags" field of "struct wt_status" does not need to be stored in the serialization cache file, since it is a display property. Update the code comments in both serialize and deserialize to reflect that. Signed-off-by: Jeff Hostetler <[email protected]>
1 parent b8c5b77 commit 6ba7cd1

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

wt-status-deserialize.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,7 @@ static int wt_deserialize_fd(const struct wt_status *cmd_s, struct wt_status *de
536536
/* show_branch */
537537
/* show_stash */
538538
/* hints */
539+
/* ahead_behind_flags */
539540
if (cmd_s->detect_rename != des_s->detect_rename) {
540541
trace_printf_key(&trace_deserialize, "reject: detect_rename");
541542
return DESERIALIZE_ERR;

wt-status-serialize.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ static void wt_serialize_v1_header(struct wt_status *s, int fd)
4848
/* show_branch */
4949
/* show_stash */
5050
packet_write_fmt(fd, "hints %d\n", s->hints);
51+
/* ahead_behind_flags */
5152
packet_write_fmt(fd, "detect_rename %d\n", s->detect_rename);
5253
packet_write_fmt(fd, "rename_score %d\n", s->rename_score);
5354
packet_write_fmt(fd, "rename_limit %d\n", s->rename_limit);

0 commit comments

Comments
 (0)