Task ttl can be set with task manager test api, which is disabled in release mode. Move get_and_update_ttl from task manager test api to task manager api, so that it can be used in release mode. Closes #12894
22 lines
255 B
C++
22 lines
255 B
C++
/*
|
|
* Copyright (C) 2022-present ScyllaDB
|
|
*/
|
|
|
|
/*
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
#ifndef SCYLLA_BUILD_MODE_RELEASE
|
|
|
|
#pragma once
|
|
|
|
#include "api.hh"
|
|
|
|
namespace api {
|
|
|
|
void set_task_manager_test(http_context& ctx, routes& r);
|
|
|
|
}
|
|
|
|
#endif
|