Mercurial > hg > orthanc
comparison OrthancServer/Sources/Database/StatelessDatabaseOperations.cpp @ 5605:3f24eb4013d8 find-refactoring
integration mainline->find-refactoring
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 08 May 2024 10:30:57 +0200 |
parents | 81a29ad7fb4b b2a97dfd719f |
children | 4640b7ae9a11 |
comparison
equal
deleted
inserted
replaced
5602:e4e7ca3d206e | 5605:3f24eb4013d8 |
---|---|
996 | 996 |
997 if (type == ResourceType_Patient || | 997 if (type == ResourceType_Patient || |
998 type == ResourceType_Study || | 998 type == ResourceType_Study || |
999 type == ResourceType_Series) | 999 type == ResourceType_Series) |
1000 { | 1000 { |
1001 target.isStable_ = !transaction.GetTransactionContext().IsUnstableResource(internalId); | 1001 target.isStable_ = !transaction.GetTransactionContext().IsUnstableResource(type, internalId); |
1002 | 1002 |
1003 if (LookupStringMetadata(tmp, target.metadata_, MetadataType_LastUpdate)) | 1003 if (LookupStringMetadata(tmp, target.metadata_, MetadataType_LastUpdate)) |
1004 { | 1004 { |
1005 target.lastUpdate_ = tmp; | 1005 target.lastUpdate_ = tmp; |
1006 } | 1006 } |
3553 transaction.LogChange(status.seriesId_, ChangeType_NewChildInstance, ResourceType_Series, hashSeries_); | 3553 transaction.LogChange(status.seriesId_, ChangeType_NewChildInstance, ResourceType_Series, hashSeries_); |
3554 transaction.LogChange(status.studyId_, ChangeType_NewChildInstance, ResourceType_Study, hashStudy_); | 3554 transaction.LogChange(status.studyId_, ChangeType_NewChildInstance, ResourceType_Study, hashStudy_); |
3555 transaction.LogChange(status.patientId_, ChangeType_NewChildInstance, ResourceType_Patient, hashPatient_); | 3555 transaction.LogChange(status.patientId_, ChangeType_NewChildInstance, ResourceType_Patient, hashPatient_); |
3556 | 3556 |
3557 // Mark the parent resources of this instance as unstable | 3557 // Mark the parent resources of this instance as unstable |
3558 transaction.GetTransactionContext().MarkAsUnstable(status.seriesId_, ResourceType_Series, hashSeries_); | 3558 transaction.GetTransactionContext().MarkAsUnstable(ResourceType_Series, status.seriesId_, hashSeries_); |
3559 transaction.GetTransactionContext().MarkAsUnstable(status.studyId_, ResourceType_Study, hashStudy_); | 3559 transaction.GetTransactionContext().MarkAsUnstable(ResourceType_Study, status.studyId_, hashStudy_); |
3560 transaction.GetTransactionContext().MarkAsUnstable(status.patientId_, ResourceType_Patient, hashPatient_); | 3560 transaction.GetTransactionContext().MarkAsUnstable(ResourceType_Patient, status.patientId_, hashPatient_); |
3561 transaction.GetTransactionContext().SignalAttachmentsAdded(instanceSize); | 3561 transaction.GetTransactionContext().SignalAttachmentsAdded(instanceSize); |
3562 | 3562 |
3563 storeStatus_ = StoreStatus_Success; | 3563 storeStatus_ = StoreStatus_Success; |
3564 } | 3564 } |
3565 }; | 3565 }; |