From 567c8b9628b132afa38ad9a3a4bdda23523129cb Mon Sep 17 00:00:00 2001 From: Keyur Patel Date: Thu, 7 Nov 2019 13:01:06 -0700 Subject: [PATCH] sleep if write buffer gets too large --- openbr/plugins/gallery/lmdb.cpp | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) diff --git a/openbr/plugins/gallery/lmdb.cpp b/openbr/plugins/gallery/lmdb.cpp index d30e6bd..6ca9e37 100644 --- a/openbr/plugins/gallery/lmdb.cpp +++ b/openbr/plugins/gallery/lmdb.cpp @@ -180,6 +180,9 @@ class lmdbGallery : public Gallery lock.unlock(); aThread.waitForFinished(); + + if (data.size() > 10000) + QThread::msleep(1); } } -- libgit2 0.21.4