提交 c55f7179 编写于 作者: C cailiuyang 提交者: WeijieSun

add one more restriction when start an app

Summary: Ref T9978

Test Plan: N/A

Reviewers: sunweijie, wutao1, heyuchen, laiyingchun

Reviewed By: sunweijie

Subscribers: #pegasus

Maniphest Tasks: T9978

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

Conflicts:
	rdsn
上级 bc4f79ed
Subproject commit 8ef801eaf5a8a358f76afa2996b6c15dd0316dcd
Subproject commit 5adcf734c9b5a1e55ea684727ee6473a340f2176
......@@ -1442,7 +1442,13 @@ DEFINE_TASK_CODE(UPDATING_ROCKSDB_SSTSIZE, TASK_PRIORITY_COMMON, THREAD_POOL_REP
bool force_restore = restore_info.second;
if (restore_dir.empty()) {
// case 2
dinfo("%s: open a new db, path = %s", _replica_name.c_str(), path.c_str());
if (force_restore) {
derror("%s: try to restore, but we can't combine restore_dir from envs",
_replica_name.c_str());
return ::dsn::ERR_FILE_OPERATION_FAILED;
} else {
dinfo("%s: open a new db, path = %s", _replica_name.c_str(), path.c_str());
}
} else {
// case 3
ddebug("%s: try to restore from restore_dir = %s",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册