Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3374038
D3628.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D3628.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D3628: [services] Backup - Update service implementation for pull backup
Attached
Detach File
Event Timeline
Log In to Comment