Missleading/Outdated comment in data router
メンテナーはふだん 2 日以内に返信
評価
調査の方向性
data_router.cpp を開き、148~153 行付近の NewSourceSessionImpl を調べて、コメントが mutex のロックと挿入の内容に合っているか確認してください。依頼どおり古くなったコメントを削除してください。誤解を招くコメントがなくなり、コードの動作が変わっていなければ完了です。
索引モデルが issue の本文から書いたものです。
説明
Description
When studying the code of data_router.cpp, I identified a comment which does not match the implementation:
In NewSourceSessionImpl, lines 148-153:
std::lock_guard<std::mutex> lock(subscriber_mutex_);
// Insert is protected by subscriber_mutex_ held by caller (new_source_session_impl).
// This relies on the calling convention that SourceSession is only constructed
// from new_source_session_impl() which acquires the lock before construction.
std::ignore = sources_.insert(source_session.get());
Problem notifications
Bug has no functional impact. No urgent problem notification required.
Analysis results
Obviously, the mutex is not held by the caller.
The comment refers to functions in snake case which may have been used in legacy version.
Solution
Remove the comment.
Error Occurrence Rate
No response
How to reproduce
No response
Supporting Information
No response
Classification
Minor
First Affected Release
No response
Last Affected Release
No response
Expected Fixed Release
No response
Category
- Safety Relevant
- Security Relevant
- 主要言語
- C++
- スター
- 2
- フォーク
- 32
- 平均マージ
- 3日 16時間
- マージ済み PR(30日)
- 16
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
eclipse-score/logging のほかの issue
-
Outdated documentation of shared memory API usage対応中かも @uwe-martin が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
eclipse-score/logging#372 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
eclipse-score/logging#339 ·
メンテナーはふだん 2 日以内に返信
-
wp:architecture
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
eclipse-score/logging#314 ·
メンテナーはふだん 2 日以内に返信
-
wp:architecture
難易度 2/5 半日 初心者へのやさしさ 68/100
eclipse-score/logging#312 ·
メンテナーはふだん 2 日以内に返信
-
wp:architecture
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
eclipse-score/logging#310 ·
メンテナーはふだん 2 日以内に返信
eclipse-score/logging の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
foxglove/mcap#1907 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
telegramdesktop/tdesktop#31505 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
ll-builder shell completions omit existing lockfile commands and --locked対応中かも @project-nju-learner が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
OpenAtom-Linyaps/linyaps#2291 ·
メンテナーはふだん 1 日以内に返信