summaryrefslogtreecommitdiffstats
path: root/include/framework/scheduling/Task.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/framework/scheduling/Task.h')
-rw-r--r--include/framework/scheduling/Task.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/include/framework/scheduling/Task.h b/include/framework/scheduling/Task.h
index 7242bef..1ab35d2 100644
--- a/include/framework/scheduling/Task.h
+++ b/include/framework/scheduling/Task.h
@@ -23,14 +23,19 @@
namespace de {
+enum class ReconstructionPriority {
+ FLUSH = 0,
+ CMPCT = 1,
+ MAINT = 2
+};
+
template <ShardInterface ShardType, QueryInterface<ShardType> QueryType>
struct ReconstructionArgs {
typedef typename ShardType::RECORD RecordType;
- Epoch<ShardType, QueryType> *epoch;
+ std::atomic<std::shared_ptr<Version<ShardType, QueryType>>> version;
ReconstructionVector tasks;
- std::promise<bool> result;
- bool compaction;
void *extension;
+ ReconstructionPriority priority;
};
template <ShardInterface S, QueryInterface<S> Q, typename DE> struct QueryArgs {