Page MenuHomePhabricator

D3628.diff
No OneTemporary

D3628.diff

diff --git a/services/backup/docker-server/contents/server/src/BackupServiceImpl.h b/services/backup/docker-server/contents/server/src/BackupServiceImpl.h
--- a/services/backup/docker-server/contents/server/src/BackupServiceImpl.h
+++ b/services/backup/docker-server/contents/server/src/BackupServiceImpl.h
@@ -28,8 +28,9 @@
backup::RecoverBackupKeyResponse> *
RecoverBackupKey(grpc::CallbackServerContext *context) override;
- grpc::ServerBidiReactor<backup::PullBackupRequest, backup::PullBackupResponse>
- *PullBackup(grpc::CallbackServerContext *context) override;
+ grpc::ServerWriteReactor<backup::PullBackupResponse> *PullBackup(
+ grpc::CallbackServerContext *context,
+ const backup::PullBackupRequest *request) override;
};
} // namespace network
diff --git a/services/backup/docker-server/contents/server/src/BackupServiceImpl.cpp b/services/backup/docker-server/contents/server/src/BackupServiceImpl.cpp
--- a/services/backup/docker-server/contents/server/src/BackupServiceImpl.cpp
+++ b/services/backup/docker-server/contents/server/src/BackupServiceImpl.cpp
@@ -38,9 +38,13 @@
return new reactor::RecoverBackupKeyReactor();
}
-grpc::ServerBidiReactor<backup::PullBackupRequest, backup::PullBackupResponse> *
-BackupServiceImpl::PullBackup(grpc::CallbackServerContext *context) {
- return new reactor::PullBackupReactor();
+grpc::ServerWriteReactor<backup::PullBackupResponse> *
+BackupServiceImpl::PullBackup(
+ grpc::CallbackServerContext *context,
+ const backup::PullBackupRequest *request) {
+ reactor::PullBackupReactor *reactor = new reactor::PullBackupReactor(request);
+ reactor->NextWrite();
+ return reactor;
}
} // namespace network

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 27, 1:24 PM (8 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2590537
Default Alt Text
D3628.diff (1 KB)

Event Timeline