Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3355225
D3814.id12266.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
D3814.id12266.diff
View Options
diff --git a/services/blob/src/Reactors/server/PutReactor.h b/services/blob/src/Reactors/server/PutReactor.h
--- a/services/blob/src/Reactors/server/PutReactor.h
+++ b/services/blob/src/Reactors/server/PutReactor.h
@@ -75,10 +75,14 @@
if (!this->status.status.ok()) {
return;
}
- if (this->uploader == nullptr && !this->dataExists) {
- throw std::runtime_error("uploader not initialized as expected");
- }
+ const database::ReverseIndexItem reverseIndexItem(
+ this->holder, this->blobHash);
if (this->uploader == nullptr) {
+ if (!this->dataExists) {
+ throw std::runtime_error("uploader not initialized as expected");
+ }
+ database::DatabaseManager::getInstance().putReverseIndexItem(
+ reverseIndexItem);
return;
}
if (!this->readingAborted) {
@@ -89,7 +93,6 @@
}
this->uploader->finishUpload();
database::DatabaseManager::getInstance().putBlobItem(*this->blobItem);
- const database::ReverseIndexItem reverseIndexItem(holder, this->blobHash);
database::DatabaseManager::getInstance().putReverseIndexItem(
reverseIndexItem);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 2:06 PM (21 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2575460
Default Alt Text
D3814.id12266.diff (1 KB)
Attached To
Mode
D3814: [services] Blob - Add holder to the blob DB if data exists
Attached
Detach File
Event Timeline
Log In to Comment