Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3106784
D3803.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
D3803.diff
View Options
diff --git a/services/backup/docker-server/contents/server/src/Reactors/server/base-reactors/ServerWriteReactorBase.h b/services/backup/docker-server/contents/server/src/Reactors/server/base-reactors/ServerWriteReactorBase.h
--- a/services/backup/docker-server/contents/server/src/Reactors/server/base-reactors/ServerWriteReactorBase.h
+++ b/services/backup/docker-server/contents/server/src/Reactors/server/base-reactors/ServerWriteReactorBase.h
@@ -33,6 +33,7 @@
virtual std::unique_ptr<grpc::Status> writeResponse(Response *response) = 0;
virtual void initialize(){};
+ virtual void validate(){};
virtual void doneCallback(){};
virtual void terminateCallback(){};
};
@@ -42,6 +43,7 @@
this->status = status;
try {
this->terminateCallback();
+ this->validate();
} catch (std::runtime_error &e) {
this->status = grpc::Status(grpc::StatusCode::INTERNAL, e.what());
}
diff --git a/services/blob/src/Reactors/server/base-reactors/ServerWriteReactorBase.h b/services/blob/src/Reactors/server/base-reactors/ServerWriteReactorBase.h
--- a/services/blob/src/Reactors/server/base-reactors/ServerWriteReactorBase.h
+++ b/services/blob/src/Reactors/server/base-reactors/ServerWriteReactorBase.h
@@ -33,6 +33,7 @@
virtual std::unique_ptr<grpc::Status> writeResponse(Response *response) = 0;
virtual void initialize(){};
+ virtual void validate(){};
virtual void doneCallback(){};
virtual void terminateCallback(){};
};
@@ -42,6 +43,7 @@
this->status = status;
try {
this->terminateCallback();
+ this->validate();
} catch (std::runtime_error &e) {
this->status = grpc::Status(grpc::StatusCode::INTERNAL, e.what());
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 1, 3:46 AM (9 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2395153
Default Alt Text
D3803.diff (1 KB)
Attached To
Mode
D3803: [services] Backup/Blob - Add validate method to server write reactor base
Attached
Detach File
Event Timeline
Log In to Comment