Skip to content

Commit

Permalink
refactor: move manual compaction common types to a seperate file (#997)
Browse files Browse the repository at this point in the history
  • Loading branch information
levy5307 authored Dec 27, 2021
1 parent d12b2ac commit f9700bc
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/client/replication_ddl_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
#include "common/replication_common.h"
#include "common/bulk_load_common.h"
#include "common/partition_split_common.h"
#include "common/manual_compact.h"
#include "meta/meta_rpc_types.h"

namespace dsn {
Expand Down
30 changes: 30 additions & 0 deletions src/common/manual_compact.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.

#pragma once

#include "meta_admin_types.h"
#include <dsn/cpp/rpc_holder.h>

namespace dsn {
namespace replication {
typedef rpc_holder<start_app_manual_compact_request, start_app_manual_compact_response>
start_manual_compact_rpc;
typedef rpc_holder<query_app_manual_compact_request, query_app_manual_compact_response>
query_manual_compact_rpc;
} // namespace replication
} // namespace dsn
5 changes: 0 additions & 5 deletions src/common/replication_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,6 @@ typedef rpc_holder<configuration_update_app_env_request, configuration_update_ap

typedef rpc_holder<backup_request, backup_response> backup_rpc;

typedef rpc_holder<start_app_manual_compact_request, start_app_manual_compact_response>
start_manual_compact_rpc;
typedef rpc_holder<query_app_manual_compact_request, query_app_manual_compact_response>
query_manual_compact_rpc;

class replication_options
{
public:
Expand Down
1 change: 1 addition & 0 deletions src/meta/meta_service.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
#include "common/replication_common.h"
#include "common/bulk_load_common.h"
#include "common/partition_split_common.h"
#include "common/manual_compact.h"
#include "meta_rpc_types.h"
#include "meta_options.h"
#include "meta_backup_service.h"
Expand Down

0 comments on commit f9700bc

Please sign in to comment.