From: vro Date: Tue, 1 Oct 2019 05:36:21 +0000 (+0300) Subject: 0031013: Application Framework - Storage status is wrong after a failure X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2FCR0_WEEK42_kgv;p=occt-copy.git 0031013: Application Framework - Storage status is wrong after a failure CDF_StoreList.cxx::Store() was amended --- diff --git a/src/CDF/CDF_StoreList.cxx b/src/CDF/CDF_StoreList.cxx index 38d89d89a9..91149aed7e 100644 --- a/src/CDF/CDF_StoreList.cxx +++ b/src/CDF/CDF_StoreList.cxx @@ -101,6 +101,10 @@ PCDM_StoreStatus CDF_StoreList::Store (Handle(CDM_MetaData)& aMetaData, TCollect throw Standard_Failure(aMsg.str().c_str()); } + // Reset the store-status. + // It has sense in multi-threaded access to the storage driver - this way we reset the status for each call. + aDocumentStorageDriver->SetStoreStatus(PCDM_SS_OK); + if(!theMetaDataDriver->FindFolder(theDocument->RequestedFolder())) { Standard_SStream aMsg; aMsg << "could not find the active dbunit"; aMsg << TCollection_ExtendedString(theDocument->RequestedFolder())<< (char)0;