aboutsummaryrefslogtreecommitdiffstats
path: root/backend/magiback
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2020-10-10 12:52:06 +0200
committerPapoteur <papoteur@mageia.org>2020-10-10 12:52:06 +0200
commit194a1e4f3206bcd69a0d29a831d009d0aad49536 (patch)
tree703ee51786319e17a655d4eb518b9c92f5c4d42f /backend/magiback
parent80aa0733fac3bec248fc764ed44cb44d68899636 (diff)
downloadisodumper-194a1e4f3206bcd69a0d29a831d009d0aad49536.tar
isodumper-194a1e4f3206bcd69a0d29a831d009d0aad49536.tar.gz
isodumper-194a1e4f3206bcd69a0d29a831d009d0aad49536.tar.bz2
isodumper-194a1e4f3206bcd69a0d29a831d009d0aad49536.tar.xz
isodumper-194a1e4f3206bcd69a0d29a831d009d0aad49536.zip
Add waiting step for table partition after new created partition
Move the do_persistence step in a thread a display progress
Diffstat (limited to 'backend/magiback')
-rwxr-xr-xbackend/magiback5
1 files changed, 4 insertions, 1 deletions
diff --git a/backend/magiback b/backend/magiback
index e7541c3..2ad748b 100755
--- a/backend/magiback
+++ b/backend/magiback
@@ -94,9 +94,12 @@ class Isodumper(raw_write.Dumper):
def do_persistence(self, target, label, key):
self.finished.clear()
if self.writing_perm and self.writing_target == target :
- self._do_persistence(target, label, key)
+ self.thread = threading.Thread(target=self._do_persistence, args=(target, label, key))
+ self.thread.start()
+ logging.debug("Persistence thread started")
else:
self.return_message = "Persistence: Access denied"
+ self.finished.set()
self.writing_perm = False
self.writing_target = ""