aboutsummaryrefslogtreecommitdiff
path: root/mod/database-module.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2024-12-02 14:01:53 +0200
committerKaren Arutyunov <karen@codesynthesis.com>2024-12-02 14:01:53 +0200
commit56e8ebbb2f9ce02149f248aecebe20fcfd1d8e07 (patch)
tree836b4728d3645971722aaa4b30ee1d6b84f47013 /mod/database-module.hxx
parent0ae394e9bb425dc8a3b06e7ba722df4f39bcf61d (diff)
Add tenant id to tenant service notifications and callbacks
Diffstat (limited to 'mod/database-module.hxx')
-rw-r--r--mod/database-module.hxx14
1 files changed, 8 insertions, 6 deletions
diff --git a/mod/database-module.hxx b/mod/database-module.hxx
index 298afbf..76f13d4 100644
--- a/mod/database-module.hxx
+++ b/mod/database-module.hxx
@@ -61,16 +61,18 @@ namespace brep
// and nullopt otherwise.
//
// Specifically, start the database transaction, query the service state,
- // and call the callback-returned function on this state. If this call
- // returns the data string (rather than nullopt), then update the service
- // state with this data and persist the change. Repeat all the above steps
- // on the recoverable database failures (deadlocks, etc).
+ // and, if present, call the callback-returned function on this state. If
+ // this call returns the data string (rather than nullopt), then update
+ // the service state with this data and persist the change. Repeat all the
+ // above steps on the recoverable database failures (deadlocks, etc).
//
optional<string>
update_tenant_service_state (
const odb::core::connection_ptr&,
- const string& tid,
- const function<optional<string> (const tenant_service&)>&);
+ const string& type,
+ const string& id,
+ const function<optional<string> (const string& tenant_id,
+ const tenant_service&)>&);
protected:
size_t retry_ = 0; // Max of all retries.