Update timestamp when reloading file.
authorcantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Mon, 9 Jun 2003 01:06:31 +0000 (01:06 +0000)
committercantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Mon, 9 Jun 2003 01:06:31 +0000 (01:06 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@481 cb58f699-b61c-0410-a6fe-9272a202ed29

shib/XMLMetadata.cpp
shib/XMLTrust.cpp

index da6d5a0..f3f8013 100644 (file)
@@ -324,6 +324,7 @@ void XMLMetadata::lock()
                     XMLMetadataImpl* new_mapper=new XMLMetadataImpl(m_source.c_str());
                     delete m_impl;
                     m_impl=new_mapper;
+                    m_filestamp=stat_buf.st_mtime;
                     m_lock->unlock();
                 }
                 catch(SAMLException& e)
index 4462e5b..2035bf2 100644 (file)
@@ -288,6 +288,7 @@ void XMLTrust::lock()
                     XMLTrustImpl* new_mapper=new XMLTrustImpl(m_source.c_str());
                     delete m_impl;
                     m_impl=new_mapper;
+                    m_timestamp=stat_buf.st_mtime;
                     m_lock->unlock();
                 }
                 catch(SAMLException& e)