[pbs-devel] [PATCH proxmox-backup 2/8] worker_task: add getter for upid
Dominik Csapak
d.csapak at proxmox.com
Fri Jul 31 14:43:24 CEST 2020
sometimes we need the upid inside the worker itself, so give a
possibilty to get it
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
src/server/worker_task.rs | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/server/worker_task.rs b/src/server/worker_task.rs
index f6882d13..fdbbacbe 100644
--- a/src/server/worker_task.rs
+++ b/src/server/worker_task.rs
@@ -589,4 +589,8 @@ impl WorkerTask {
}
rx
}
+
+ pub fn upid(&self) -> &UPID {
+ &self.upid
+ }
}
--
2.20.1
More information about the pbs-devel
mailing list