diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-07-05 12:13:58 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-07-05 12:13:58 +0200 |
commit | ad612623be5facd4e89fcc9347217d6c7ab1778b (patch) | |
tree | 5b13a0beddd6eac0def43ff225943d322798cea2 /src/include/taler_exchangedb_plugin.h | |
parent | 3ff92b9bbcf072d0b9840ad1c6af0a2bc1b1ef21 (diff) |
-run read-only transactions in proper read-only scope (at least some of them)
Diffstat (limited to 'src/include/taler_exchangedb_plugin.h')
-rw-r--r-- | src/include/taler_exchangedb_plugin.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h index 48f0ff993..c3661d83b 100644 --- a/src/include/taler_exchangedb_plugin.h +++ b/src/include/taler_exchangedb_plugin.h @@ -2844,6 +2844,18 @@ struct TALER_EXCHANGEDB_Plugin (*start_read_committed)(void *cls, const char *name); + /** + * Start a READ ONLY serializable transaction. + * + * @param cls the `struct PostgresClosure` with the plugin-specific state + * @param name unique name identifying the transaction (for debugging) + * must point to a constant + * @return #GNUNET_OK on success + */ + enum GNUNET_GenericReturnValue + (*start_read_only)(void *cls, + const char *name); + /** * Commit a transaction. |