aboutsummaryrefslogtreecommitdiff
path: root/src/include/taler_exchangedb_plugin.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-04-14 00:00:50 +0200
committerChristian Grothoff <christian@grothoff.org>2022-04-14 00:00:50 +0200
commita13f90a15ee910c0ada316366e197de11bc6cc62 (patch)
tree2e4b400aa740782f65918eff487949409205f1bd /src/include/taler_exchangedb_plugin.h
parent5882e6b56bd64296761ba10d1192499808e5c594 (diff)
add wirewatch shutdown shard cleanup logic
Diffstat (limited to 'src/include/taler_exchangedb_plugin.h')
-rw-r--r--src/include/taler_exchangedb_plugin.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h
index 18f2fd924..abc7a7aa1 100644
--- a/src/include/taler_exchangedb_plugin.h
+++ b/src/include/taler_exchangedb_plugin.h
@@ -4296,6 +4296,20 @@ struct TALER_EXCHANGEDB_Plugin
uint64_t *start_row,
uint64_t *end_row);
+ /**
+ * Function called to abort work on a shard.
+ *
+ * @param cls the @e cls of this struct with the plugin-specific state
+ * @param job_name name of the operation to abort a word shard for
+ * @param start_row inclusive start row of the shard
+ * @param end_row exclusive end row of the shard
+ * @return transaction status code
+ */
+ enum GNUNET_DB_QueryStatus
+ (*abort_shard)(void *cls,
+ const char *job_name,
+ uint64_t start_row,
+ uint64_t end_row);
/**
* Function called to persist that work on a shard was completed.