Commit 567c8b9628b132afa38ad9a3a4bdda23523129cb

Authored by Keyur Patel
1 parent 2f46e781

sleep if write buffer gets too large

openbr/plugins/gallery/lmdb.cpp
@@ -180,6 +180,9 @@ class lmdbGallery : public Gallery @@ -180,6 +180,9 @@ class lmdbGallery : public Gallery
180 lock.unlock(); 180 lock.unlock();
181 181
182 aThread.waitForFinished(); 182 aThread.waitForFinished();
  183 +
  184 + if (data.size() > 10000)
  185 + QThread::msleep(1);
183 } 186 }
184 } 187 }
185 188