Skip to content

Commit

Permalink
progress: add a thrift Entry point for reporting progress
Browse files Browse the repository at this point in the history
Summary: surprise_tool

Reviewed By: kmancini

Differential Revision: D60385450

fbshipit-source-id: e935609cebf7969a84ad88d625283b1c5933752b
  • Loading branch information
sggutier authored and facebook-github-bot committed Aug 12, 2024
1 parent 5c265fd commit 5d3b7b4
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions eden/fs/service/eden.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -1683,6 +1683,21 @@ struct GetBlockedFaultsResponse {
1: list<string> keyValues;
}

struct CheckoutProgressInfo {
1: i64 updatedInodes;
}

struct CheckoutNotInProgress {}

struct CheckoutProgressInfoRequest {
1: PathString mountPoint;
}

union CheckoutProgressInfoResponse {
1: CheckoutProgressInfo checkoutProgressInfo;
2: CheckoutNotInProgress noProgress;
}

service EdenService extends fb303_core.BaseService {
list<MountInfo> listMounts() throws (1: EdenError ex);
void mount(1: MountArgument info) throws (1: EdenError ex);
Expand Down Expand Up @@ -1719,6 +1734,16 @@ service EdenService extends fb303_core.BaseService {
4: CheckOutRevisionParams params,
) throws (1: EdenError ex);

/**
* Given an Eden mount point returns progress for the checkOutRevision end
* point. When a checkout is not in progress it returns CheckoutNotInProgress
*
* It errors out when no valid mountPoint is provided.
*/
CheckoutProgressInfoResponse getCheckoutProgressInfo(
1: CheckoutProgressInfoRequest params,
) throws (1: EdenError ex);

/**
* Reset the working directory's parent commits, without changing the working
* directory contents.
Expand Down

0 comments on commit 5d3b7b4

Please sign in to comment.