From 8cf60948213a141b86e9a7128359545040f97276 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 11 May 2018 17:35:51 +0200 Subject: Support copying existing chunks server side Can speed up uploads if the storage backend is fast enough. --- src/main/thrift/bwlp.thrift | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/main/thrift/bwlp.thrift') diff --git a/src/main/thrift/bwlp.thrift b/src/main/thrift/bwlp.thrift index 103f8df..4f4f4b1 100644 --- a/src/main/thrift/bwlp.thrift +++ b/src/main/thrift/bwlp.thrift @@ -352,6 +352,10 @@ struct TransferStatus { 2: TransferState state, } +struct UploadOptions { + 1: bool serverSideCopying, +} + struct SatelliteConfig { // Get number of items returned per page (for calls that have a page parameter) 1: i32 pageSize, @@ -440,9 +444,13 @@ service SatelliteServer { throws (1:TTransferRejectedException rejection, 2:TAuthorizationException authError, 3:TInvocationException ffff, 4:TNotFoundException sdf), // Client updates block hashes of an upload - void updateBlockHashes(1: Token uploadToken, 2: list blockHashes) + void updateBlockHashes(1: Token uploadToken, 2: list blockHashes, 3: Token userToken) throws (1:TInvalidTokenException ex1), + // Change settings for a specific upload + UploadOptions setUploadOptions(1: Token userToken, 2: Token uploadToken, 3: UploadOptions options) + throws (1:TAuthorizationException frootloops, 2:TInvalidTokenException imcyborgbutthatsok), + // Client cancels an upload void cancelUpload(1: Token uploadToken) throws (1:TInvalidTokenException ex1), -- cgit v1.2.3-55-g7522