Skip to content

Commit

Permalink
bypass cluster id (vesoft-inc#2848)
Browse files Browse the repository at this point in the history
  • Loading branch information
critical27 committed Jun 16, 2023
1 parent cbf879e commit 0ca947b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/meta/processors/admin/CreateBackupProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ void CreateBackupProcessor::process(const cpp2::CreateBackupReq& req) {
auto* backupSpaces = req.get_spaces();
if (req.base_backup_name_ref().has_value()) {
baseBackupName_ = *req.get_base_backup_name();
// Following code are commented out, see the issue for details
// https://github.com/vesoft-inc/nebula-ent/issues/2823#issuecomment-1594385585
/*
if (!req.cluster_id_ref().has_value()) {
LOG(INFO) << "Incremental backup must specify cluster Id";
handleErrorCode(nebula::cpp2::ErrorCode::E_INVALID_PARM);
Expand All @@ -133,6 +136,7 @@ void CreateBackupProcessor::process(const cpp2::CreateBackupReq& req) {
onFinished();
return;
}
*/
}
auto* store = static_cast<kvstore::NebulaStore*>(kvstore_);
if (!store->isLeader(kDefaultSpaceId, kDefaultPartId)) {
Expand Down

0 comments on commit 0ca947b

Please sign in to comment.