From 56e8ebbb2f9ce02149f248aecebe20fcfd1d8e07 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 2 Dec 2024 14:01:53 +0200 Subject: Add tenant id to tenant service notifications and callbacks --- mod/database-module.hxx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'mod/database-module.hxx') 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 update_tenant_service_state ( const odb::core::connection_ptr&, - const string& tid, - const function (const tenant_service&)>&); + const string& type, + const string& id, + const function (const string& tenant_id, + const tenant_service&)>&); protected: size_t retry_ = 0; // Max of all retries. -- cgit v1.1