Skip to content

Commit 9ca6774

Browse files
committed
Only synchronize once
1 parent 5c6a431 commit 9ca6774

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

src/file/MultiFileSystem.cpp

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,16 +95,26 @@ cdc::FileSystem::Status MultiFileSystem::GetStatus()
9595

9696
void MultiFileSystem::Update()
9797
{
98-
for (auto fileSystem : m_fileSystems)
98+
//for (auto fileSystem : m_fileSystems)
99+
//{
100+
// fileSystem->Update();
101+
//}
102+
103+
if (!m_fileSystems.empty())
99104
{
100-
fileSystem->Update();
105+
m_fileSystems[0]->Update();
101106
}
102107
}
103108

104109
void MultiFileSystem::Synchronize()
105110
{
106-
for (auto fileSystem : m_fileSystems)
111+
//for (auto fileSystem : m_fileSystems)
112+
//{
113+
// fileSystem->Synchronize();
114+
//}
115+
116+
if (!m_fileSystems.empty())
107117
{
108-
fileSystem->Synchronize();
118+
m_fileSystems[0]->Synchronize();
109119
}
110120
}

0 commit comments

Comments
 (0)