You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pegasus.apache.org by wu...@apache.org on 2021/03/31 11:34:05 UTC
[incubator-pegasus] 04/05: fix: do not get master while raise a new
pull request (#706)
This is an automated email from the ASF dual-hosted git repository.
wutao pushed a commit to branch v2.2
in repository https://gitbox.apache.org/repos/asf/incubator-pegasus.git
commit 593758cc59735f8db9b4771fb1c25789418fe725
Author: HeYuchen <37...@qq.com>
AuthorDate: Fri Mar 26 13:09:48 2021 +0800
fix: do not get master while raise a new pull request (#706)
---
.github/workflows/ci-pull-request.yaml | 11 ++++-------
src/server/info_collector.h | 4 ++--
src/server/table_stats.h | 4 ++--
3 files changed, 8 insertions(+), 11 deletions(-)
diff --git a/.github/workflows/ci-pull-request.yaml b/.github/workflows/ci-pull-request.yaml
index d60ab02..0509499 100644
--- a/.github/workflows/ci-pull-request.yaml
+++ b/.github/workflows/ci-pull-request.yaml
@@ -27,14 +27,11 @@ jobs:
runs-on: ubuntu-latest
container:
image: apachepegasus/clang-format-3.9
- defaults:
- run:
- working-directory: /root/incubator-pegasus
steps:
- - name: Clone Apache Pegasus Source
- working-directory: /root
- run: |
- git clone --recursive --depth=1 https://github.com/apache/incubator-pegasus.git
+ - uses: actions/checkout@v2
+ with:
+ fetch-depth: 1
+ submodules: true
- name: clang-format
run: ./rdsn/scripts/linux/run-clang-format.py --clang-format-executable clang-format-3.9 -e ./src/shell/linenoise -e ./src/shell/sds -e ./rdsn -r ./src
diff --git a/src/server/info_collector.h b/src/server/info_collector.h
index c801232..65312a0 100644
--- a/src/server/info_collector.h
+++ b/src/server/info_collector.h
@@ -76,9 +76,9 @@ public:
recent_write_throttling_reject_count->set(
row_stats.total_recent_write_throttling_reject_count);
recent_read_throttling_delay_count->set(
- row_stats.total_recent_read_throttling_delay_count);
+ row_stats.total_recent_read_throttling_delay_count);
recent_read_throttling_reject_count->set(
- row_stats.total_recent_read_throttling_reject_count);
+ row_stats.total_recent_read_throttling_reject_count);
storage_mb->set(row_stats.total_storage_mb);
storage_count->set(row_stats.total_storage_count);
rdb_block_cache_hit_rate->set(
diff --git a/src/server/table_stats.h b/src/server/table_stats.h
index cf9e10e..c3bafcd 100644
--- a/src/server/table_stats.h
+++ b/src/server/table_stats.h
@@ -117,9 +117,9 @@ struct table_stats
total_recent_write_throttling_reject_count +=
row_stats.total_recent_write_throttling_reject_count;
total_recent_read_throttling_delay_count +=
- row_stats.total_recent_read_throttling_delay_count;
+ row_stats.total_recent_read_throttling_delay_count;
total_recent_read_throttling_reject_count +=
- row_stats.total_recent_read_throttling_reject_count;
+ row_stats.total_recent_read_throttling_reject_count;
total_storage_mb += row_stats.total_storage_mb;
total_storage_count += row_stats.total_storage_count;
total_rdb_block_cache_hit_count += row_stats.total_rdb_block_cache_hit_count;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pegasus.apache.org
For additional commands, e-mail: commits-help@pegasus.apache.org