Page MenuHomePhabricator

D3814.diff
No OneTemporary

D3814.diff

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

Mime Type
text/plain
Expires
Sun, Nov 24, 11:45 AM (19 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2575460
Default Alt Text
D3814.diff (1 KB)

Event Timeline