Skip to content

Commit f0e49ae

Browse files
Lenar Fatikhovfacebook-github-bot
authored andcommitted
add reply flag for misrouted requests
Summary: We will use this as a reply flag to identify client requests that are continuously get misrouted. Reviewed By: anidev Differential Revision: D79384027 fbshipit-source-id: 4d70d9fb1d1eb89d8014a45fd8b2a492e2b849aa
1 parent 1a13494 commit f0e49ae

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mcrouter/lib/mc/msg.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ enum mc_msg_flags_t {
267267
MC_MSG_FLAG_KEY_CLIENT_BINDING_ENABLED = 0x40,
268268
MC_MSG_FLAG_REQUEST_EXPTIME = 0x80,
269269
MC_MSG_FLAG_THRIFT_BINARY_SERIALIZED = 0x100,
270+
MC_MSG_FLAG_REQUEST_MISROUTED_OR_STALE = 0x200,
270271
MC_MSG_FLAG_NZLIB_COMPRESSED = 0x800,
271272
MC_MSG_FLAG_QUICKLZ_COMPRESSED = 0x2000,
272273
MC_MSG_FLAG_SNAPPY_COMPRESSED = 0x4000,
@@ -308,6 +309,8 @@ static inline const char* mc_flag_to_string(const enum mc_msg_flags_t flag) {
308309
return "ASCII_INT_SERIALIZED";
309310
case MC_MSG_FLAG_THRIFT_BINARY_SERIALIZED:
310311
return "THRIFT_BINARY_SERIALIZED";
312+
case MC_MSG_FLAG_REQUEST_MISROUTED_OR_STALE:
313+
return "REQUEST_MISROUTED_OR_STALE";
311314
case MC_MSG_FLAG_SIZE_SPLIT:
312315
return "SIZE_SPLIT";
313316
case MC_MSG_FLAG_KEY_CLIENT_BINDING_ENABLED:

0 commit comments

Comments
 (0)