Skip to content
Snippets Groups Projects
Commit e126d26c authored by Roman Tsisyk's avatar Roman Tsisyk
Browse files

Rename snapshot_daemon to checkpoint_daemon

Follow up #2496
parent 92a8e0dc
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@ lua_source(lua_sources lua/load_cfg.lua)
lua_source(lua_sources lua/schema.lua)
lua_source(lua_sources lua/tuple.lua)
lua_source(lua_sources lua/session.lua)
lua_source(lua_sources lua/snapshot_daemon.lua)
lua_source(lua_sources lua/checkpoint_daemon.lua)
lua_source(lua_sources lua/net_box.lua)
lua_source(lua_sources lua/upgrade.lua)
lua_source(lua_sources lua/console.lua)
......
-- snapshot_daemon.lua (internal file)
-- checkpoint_daemon.lua (internal file)
local log = require 'log'
local fiber = require 'fiber'
......@@ -8,7 +8,7 @@ local errno = require 'errno'
local digest = require 'digest'
local pickle = require 'pickle'
local PREFIX = 'snapshot_daemon'
local PREFIX = 'checkpoint_daemon'
local daemon = {
checkpoint_interval = 0;
......
......@@ -61,7 +61,7 @@ extern char session_lua[],
tuple_lua[],
schema_lua[],
load_cfg_lua[],
snapshot_daemon_lua[],
checkpoint_daemon_lua[],
net_box_lua[],
upgrade_lua[],
console_lua[];
......@@ -70,7 +70,7 @@ static const char *lua_sources[] = {
"box/session", session_lua,
"box/tuple", tuple_lua,
"box/schema", schema_lua,
"box/snapshot_daemon", snapshot_daemon_lua,
"box/checkpoint_daemon", checkpoint_daemon_lua,
"box/upgrade", upgrade_lua,
"box/net_box", net_box_lua,
"box/console", console_lua,
......
......@@ -143,7 +143,7 @@ local dynamic_cfg = {
read_only = private.cfg_set_read_only,
vinyl_timeout = private.cfg_update_vinyl_options,
checkpoint_count = private.cfg_set_checkpoint_count,
checkpoint_interval = private.snapshot_daemon.set_checkpoint_interval,
checkpoint_interval = private.checkpoint_daemon.set_checkpoint_interval,
-- do nothing, affects new replicas, which query this value on start
wal_dir_rescan_delay = function() end,
custom_proc_title = function()
......
......@@ -25,7 +25,7 @@ PERIOD = 0.03
if jit.os ~= 'Linux' then PERIOD = 1.5 end
---
...
space = box.schema.space.create('snapshot_daemon')
space = box.schema.space.create('checkpoint_daemon')
---
...
index = space:create_index('pk', { type = 'tree', parts = { 1, 'unsigned' }})
......@@ -96,7 +96,7 @@ box.cfg{checkpoint_interval = 3600 * 4, checkpoint_count = 4 }
space:drop()
---
...
daemon = box.internal.snapshot_daemon
daemon = box.internal.checkpoint_daemon
---
...
-- stop daemon
......
......@@ -12,7 +12,7 @@ PERIOD = 0.03
if jit.os ~= 'Linux' then PERIOD = 1.5 end
space = box.schema.space.create('snapshot_daemon')
space = box.schema.space.create('checkpoint_daemon')
index = space:create_index('pk', { type = 'tree', parts = { 1, 'unsigned' }})
......@@ -57,7 +57,7 @@ fio.basename(snaps[1], '.snap') >= fio.basename(xlogs[1], '.xlog')
box.cfg{checkpoint_interval = 3600 * 4, checkpoint_count = 4 }
space:drop()
daemon = box.internal.snapshot_daemon
daemon = box.internal.checkpoint_daemon
-- stop daemon
box.cfg{ checkpoint_interval = 0 }
-- wait daemon to stop
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment