diff options
| author | Dan Engelbrecht <[email protected]> | 2024-11-06 09:08:02 +0100 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2024-11-06 09:08:02 +0100 |
| commit | 9285f6d0b00d720957b69b5ecd464cce1dee89bf (patch) | |
| tree | 08518888b701e54059cfec0de5f56223c332d538 /src/zencore/include | |
| parent | sponsor process attach hardening (#208) (diff) | |
| download | zen-9285f6d0b00d720957b69b5ecd464cce1dee89bf.tar.xz zen-9285f6d0b00d720957b69b5ecd464cce1dee89bf.zip | |
Improved oplog import/export progress indicator at commandline (#206)
Nicer progress bar during oplog import/export
Verify that oplog has not been deleted from disk behind our back
Diffstat (limited to 'src/zencore/include')
| -rw-r--r-- | src/zencore/include/zencore/jobqueue.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/zencore/include/zencore/jobqueue.h b/src/zencore/include/zencore/jobqueue.h index 06143791c..d5ec6255a 100644 --- a/src/zencore/include/zencore/jobqueue.h +++ b/src/zencore/include/zencore/jobqueue.h @@ -22,9 +22,10 @@ class JobQueue; class JobContext { public: - virtual bool IsCancelled() const = 0; - virtual void ReportMessage(std::string_view Message) = 0; - virtual void ReportProgress(std::string_view CurrentOp, uint32_t CurrentOpPercentComplete) = 0; + virtual bool IsCancelled() const = 0; + virtual void ReportMessage(std::string_view Message) = 0; + // virtual void ReportProgress(std::string_view CurrentOp, uint32_t CurrentOpPercentComplete) = 0; + virtual void ReportProgress(std::string_view CurrentOp, std::string_view Details, ptrdiff_t TotalCount, ptrdiff_t RemainingCount) = 0; }; class JobQueue @@ -48,7 +49,9 @@ public: struct State { std::string CurrentOp; - uint32_t CurrentOpPercentComplete = 0; + std::string CurrentOpDetails; + ptrdiff_t TotalCount; + ptrdiff_t RemainingCount; std::vector<std::string> Messages; std::string AbortReason; }; |