From a5fb145084dc3eec9504222627090357d3d82a2d Mon Sep 17 00:00:00 2001 From: Glauber Costa Date: Fri, 2 Oct 2015 14:04:35 +0200 Subject: [PATCH] storage_service: incremental backups Query and set the state of incremental backups. The initial value comes from the configuration file through the local db reference. Later on, it can be changed through the interface. Signed-off-by: Glauber Costa --- service/storage_service.hh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/service/storage_service.hh b/service/storage_service.hh index c7e14b4f62..4412cb7266 100644 --- a/service/storage_service.hh +++ b/service/storage_service.hh @@ -85,6 +85,14 @@ public: } static int RING_DELAY; // delay after which we assume ring has stablized + bool incremental_backups_enabled() { + return _cfg->incremental_backups(); + } + + void incremental_backups_set_value(bool val) { + _cfg->incremental_backups() = val; + } + // Needed by distributed<> future<> stop();