aboutsummaryrefslogtreecommitdiff
path: root/mod/database-module.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2024-04-24 11:39:14 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2024-04-24 11:39:14 +0300
commit5f2539b772d068ddc541f3bbcfcb4a3430fa496e (patch)
treeff2db21780260cde8183b65a5801ce0454966c16 /mod/database-module.hxx
parent9d539574d55ad5c65d15c040ec40764ffb1f601e (diff)
Fix tenant service related logic in build task handler
Diffstat (limited to 'mod/database-module.hxx')
-rw-r--r--mod/database-module.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/mod/database-module.hxx b/mod/database-module.hxx
index 910cb35..298afbf 100644
--- a/mod/database-module.hxx
+++ b/mod/database-module.hxx
@@ -57,7 +57,8 @@ namespace brep
// Update the tenant-associated service state if the specified
// notification callback-returned function (expected to be not NULL)
- // returns the new state data.
+ // returns the new state data. Return the service state data, if updated,
+ // and nullopt otherwise.
//
// Specifically, start the database transaction, query the service state,
// and call the callback-returned function on this state. If this call
@@ -65,7 +66,7 @@ namespace brep
// state with this data and persist the change. Repeat all the above steps
// on the recoverable database failures (deadlocks, etc).
//
- void
+ optional<string>
update_tenant_service_state (
const odb::core::connection_ptr&,
const string& tid,