Commit 567c8b9628b132afa38ad9a3a4bdda23523129cb
1 parent
2f46e781
sleep if write buffer gets too large
Showing
1 changed file
with
3 additions
and
0 deletions
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 |