Skip to content

Commit

Permalink
pass client request info into EdenFs
Browse files Browse the repository at this point in the history
Summary:
pass client request info into EdenFs

create an equivalent thrift type to the ClientRequestInfo type

we have to use thrift params (adding a new field into existing params) since thrift headers are not supported in the underlying transport used (tried in D49635948).

SocketTransport relies on FramedTransport which only transfers a payload, but no header metadata per frame.

Reviewed By: genevievehelsel

Differential Revision: D49656897

fbshipit-source-id: ac8b1ac22b20470cce903552c46672081478b59d
  • Loading branch information
Liubov Dmitrieva authored and facebook-github-bot committed Sep 27, 2023
1 parent b524957 commit a5aee68
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions eden/fs/service/eden.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -1022,6 +1022,11 @@ struct RequestInfo {
2: optional string processName;
}

struct ClientRequestInfo {
1: string correlator;
2: string entry_point;
}

enum HgEventType {
UNKNOWN = 0,
QUEUE = 1,
Expand Down Expand Up @@ -1464,6 +1469,9 @@ struct GetScmStatusParams {
* directory) will never be reported even when listIgnored is true.
*/
3: bool listIgnored = false;

// Pass unique identifier of this request's caller.
4: optional ClientRequestInfo cri;
}

/**
Expand Down Expand Up @@ -1514,6 +1522,9 @@ struct CheckOutRevisionParams {
* need to look it up.
*/
1: optional BinaryHash hgRootManifest;

// Pass unique identifier of this request's caller.
2: optional ClientRequestInfo cri;
}

struct ResetParentCommitsParams {
Expand All @@ -1528,6 +1539,9 @@ struct ResetParentCommitsParams {
* need to look it up.
*/
1: optional BinaryHash hgRootManifest;

// Pass unique identifier of this request's caller.
2: optional ClientRequestInfo cri;
}

struct RemoveRecursivelyParams {
Expand Down

0 comments on commit a5aee68

Please sign in to comment.