提交 2c8da372 编写于 作者: Q qinzuoyan 提交者: WeijieSun

update rdsn: fix backup bug

Summary: Ref T10570

Test Plan: N/A

Reviewers: sunweijie, cailiuyang

Reviewed By: cailiuyang

Subscribers: #pegasus

Maniphest Tasks: T10570

Differential Revision: https://phabricator.d.xiaomi.net/D82826

Conflicts:
	rdsn
上级 154dbdfc
Subproject commit fe7eeb3bae9a4b00e6a9edc2739407c1de4d525a
Subproject commit 3e7171247b09edbf1718546b6b839ab393a61560
......@@ -93,16 +93,17 @@ public:
//
// copy the latest checkpoint to checkpoint_dir, and the decree of the checkpoint
// copied will be assigned to checkpoint_decree if checkpoint_decree not null
// copied will be assigned to checkpoint_decree if checkpoint_decree is not null.
// if checkpoint_dir already exist, this function will delete it first.
//
// must be thread safe
// don't need call flush(), just copy even if the app is empty
// this method will not trigger flush(), just copy even if the app is empty.
virtual ::dsn::error_code copy_checkpoint_to_dir(const char *checkpoint_dir,
/*output*/ int64_t *last_decree) override;
//
// help function, just copy checkpoint to specified dir and ignore _is_checkpointing
// if checkpoint_dir already exist, this function will delete it first
// help function, just copy checkpoint to specified dir and ignore _is_checkpointing.
// if checkpoint_dir already exist, this function will delete it first.
::dsn::error_code copy_checkpoint_to_dir_unsafe(const char *checkpoint_dir,
/**output*/ int64_t *checkpoint_decree);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册