Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3275429
D4029.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
D4029.diff
View Options
diff --git a/services/backup/src/Reactors/server/CreateNewBackupReactor.h b/services/backup/src/Reactors/server/CreateNewBackupReactor.h
--- a/services/backup/src/Reactors/server/CreateNewBackupReactor.h
+++ b/services/backup/src/Reactors/server/CreateNewBackupReactor.h
@@ -32,6 +32,7 @@
std::string dataHash;
std::string holder;
std::string backupID;
+ uint64_t created;
std::shared_ptr<reactor::BlobPutClientReactor> putReactor;
ServiceBlobClient blobClient;
diff --git a/services/backup/src/Reactors/server/CreateNewBackupReactor.cpp b/services/backup/src/Reactors/server/CreateNewBackupReactor.cpp
--- a/services/backup/src/Reactors/server/CreateNewBackupReactor.cpp
+++ b/services/backup/src/Reactors/server/CreateNewBackupReactor.cpp
@@ -10,13 +10,13 @@
std::string
CreateNewBackupReactor::generateBackupID(const std::string &userID) {
- return generateUUID() + ID_SEPARATOR +
- std::to_string(getCurrentTimestamp());
+ return generateUUID() + ID_SEPARATOR + std::to_string(this->created);
}
std::unique_ptr<ServerBidiReactorStatus> CreateNewBackupReactor::handleRequest(
backup::CreateNewBackupRequest request,
backup::CreateNewBackupResponse *response) {
+ this->created = getCurrentTimestamp();
// we make sure that the blob client's state is flushed to the main memory
// as there may be multiple threads from the pool taking over here
const std::lock_guard<std::mutex> lock(this->reactorStateMutex);
@@ -93,7 +93,7 @@
database::BackupItem backupItem(
this->userID,
this->backupID,
- getCurrentTimestamp(),
+ this->created,
generateRandomString(),
this->holder,
{});
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 17, 7:05 AM (21 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2517291
Default Alt Text
D4029.diff (1 KB)
Attached To
Mode
D4029: [services] Backup - New backup - make created consistent
Attached
Detach File
Event Timeline
Log In to Comment