Skip to content

Commit

Permalink
follow clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
lupengfan1 committed Dec 31, 2024
1 parent f6707a8 commit 1f72008
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/block_service/block_service.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ namespace dist {
namespace block_service {

class block_file;
typedef dsn::ref_ptr<block_file> block_file_ptr;
using block_file_ptr = dsn::ref_ptr<block_file>;

/**
* @brief The ls_request struct, use to list all the files and directories under the dir_name
Expand Down
4 changes: 2 additions & 2 deletions src/block_service/hdfs/hdfs_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

DSN_DEFINE_uint64(replication,
hdfs_read_batch_size_bytes,
64 << 20,
(64 << 20),
"hdfs read batch size, the default value is 64MB");
DSN_TAG_VARIABLE(hdfs_read_batch_size_bytes, FT_MUTABLE);

Expand All @@ -58,7 +58,7 @@ DSN_TAG_VARIABLE(hdfs_write_limit_rate_mb_per_sec, FT_MUTABLE);

DSN_DEFINE_uint64(replication,
hdfs_write_batch_size_bytes,
64 << 20,
(64 << 20),
"hdfs write batch size, the default value is 64MB");
DSN_TAG_VARIABLE(hdfs_write_batch_size_bytes, FT_MUTABLE);

Expand Down
6 changes: 2 additions & 4 deletions src/nfs/nfs_code_definition.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
#include "task/task_code.h"
#pragma once

namespace dsn {
namespace service {
namespace dsn::service {
// define RPC task code for service 'nfs'
DEFINE_TASK_CODE_RPC(RPC_NFS_COPY, TASK_PRIORITY_COMMON, ::dsn::THREAD_POOL_BLOCK_SERVICE)
DEFINE_TASK_CODE_RPC(RPC_NFS_GET_FILE_SIZE, TASK_PRIORITY_COMMON, ::dsn::THREAD_POOL_BLOCK_SERVICE)
Expand All @@ -41,5 +40,4 @@ DEFINE_TASK_CODE(LPC_NFS_FILE_CLOSE_TIMER, TASK_PRIORITY_COMMON, ::dsn::THREAD_P
DEFINE_TASK_CODE_AIO(LPC_NFS_WRITE, TASK_PRIORITY_COMMON, ::dsn::THREAD_POOL_BLOCK_SERVICE)

DEFINE_TASK_CODE_AIO(LPC_NFS_COPY_FILE, TASK_PRIORITY_COMMON, ::dsn::THREAD_POOL_BLOCK_SERVICE)
} // namespace service
} // namespace dsn
} // namespace dsn::service

0 comments on commit 1f72008

Please sign in to comment.