]> OCCT Git - occt-copy.git/commitdiff
0031013: Application Framework - Storage status is wrong after a failure
authorvro <vro@opencascade.com>
Tue, 1 Oct 2019 05:36:21 +0000 (08:36 +0300)
committerabv <abv@opencascade.com>
Mon, 21 Oct 2019 06:58:40 +0000 (09:58 +0300)
CDF_StoreList.cxx::Store() was amended

src/CDF/CDF_StoreList.cxx

index 38d89d89a95b0533d6c9a60bba3bfc5aee001c07..91149aed7ef048da12612a57167b0b72b12fa1f3 100644 (file)
@@ -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;