Skip to content

Commit

Permalink
FileAWSSDK: Flush to disk when writing to cache
Browse files Browse the repository at this point in the history
  • Loading branch information
pnorbert committed Jun 4, 2024
1 parent 9e000ad commit 2602cd0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/adios2/toolkit/transport/file/FileAWSSDK.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ void FileAWSSDK::Read(char *buffer, size_t size, size_t start)
if (m_CachingThisFile)
{
m_CacheFileWrite->Write(buffer, size, m_SeekPos);
m_CacheFileWrite->Flush();
if (m_Verbose > 0)
{
std::cout << "FileAWSSDK::Read: Written to cache " << m_CacheFileWrite->m_Name
Expand Down

0 comments on commit 2602cd0

Please sign in to comment.