From 05c4a596363601e7aa2157409eda9be1ec087c57 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 8 Jul 2015 16:07:32 +0200 Subject: Thrift api --- src/main/thrift/bwlp.thrift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/thrift/bwlp.thrift') diff --git a/src/main/thrift/bwlp.thrift b/src/main/thrift/bwlp.thrift index 76a0630..0f4217a 100644 --- a/src/main/thrift/bwlp.thrift +++ b/src/main/thrift/bwlp.thrift @@ -282,8 +282,8 @@ struct TransferInformation { } // Used to tell status of an upload. The blockStatus is one byte per 16MB block, -// 0 = complete, 1 = missing, 2 = uploading, 3 = queued for copying, 4 = copying -struct UploadStatus { +// 0 = complete, 1 = missing, 2 = uploading, 3 = queued for copying, 4 = copying +struct TransferStatus { 1: binary blockStatus, } @@ -330,7 +330,7 @@ service SatelliteServer { TransferInformation requestImageVersionUpload(1: Token userToken, 2: UUID imageBaseId, 3: i64 fileSize, 4: list blockHashes) throws (1:TTransferRejectedException rejection, 2:TAuthorizationException authError), void cancelUpload(1: Token uploadToken), - UploadStatus queryUploadStatus(1: Token uploadToken) + TransferStatus queryUploadStatus(1: Token uploadToken) throws (1:TInvalidTokenException ex1), TransferInformation requestDownload(1: Token userToken, 2: UUID imageVersionId) -- cgit v1.2.3-55-g7522