Project

General

Profile

バグ #3654

マネージャをスレーブに設定してもis_master関数がTrueを返す問題

Added by n-miyamoto over 4 years ago. Updated over 3 years ago.

Status:
終了
Priority:
通常
Assignee:
Target version:
-
Start date:
10/07/2016
Due date:
% Done:

100%

Estimated time:

Description

マネージャがスレーブになっているにもかかわらずis_master関数がTrueを返す現象が発生するので修正を行う。

ManagerServantクラスのメンバ変数m_isMasterでマスターの時にtrueを格納する処理はあるものの、スレーブであってもfalseを格納する処理が存在しない。

m_isMasterに不定値が入っている可能性がある。


Related issues

Related to OpenRTM-aist (Java) - バグ #4264: マネージャをスレーブに設定してもis_master関数がTrueを返す問題担当2017-10-13

Associated revisions

Revision 2779 (diff)
Added by n-ando over 4 years ago

[compat,bugfix,->RELENG_1_2] ManagerServant master flag is now initialized in ctor. Other member vars also initilized. refs #3654

Revision 2779 (diff)
Added by n-ando over 4 years ago

[compat,bugfix,->RELENG_1_2] ManagerServant master flag is now initialized in ctor. Other member vars also initilized. refs #3654

Revision 2782 (diff)
Added by n-ando over 4 years ago

[compat,bugfix,->RELENG_1_2] ManagerServant master flag is now initialized in ctor. Other member vars also initilized. refs #3654

Revision 2782 (diff)
Added by n-ando over 4 years ago

[compat,bugfix,->RELENG_1_2] ManagerServant master flag is now initialized in ctor. Other member vars also initilized. refs #3654

History

#1 Updated by n-ando over 4 years ago

  • Assignee set to miyamoto
  • % Done changed from 0 to 90

メンバー変数が軒並み初期化されていなかったのでm_isMasterを含めて初期化。

--- ManagerServant.cpp  (リビジョン 2775)
+++ ManagerServant.cpp  (作業コピー)
@@ -30,7 +30,9 @@
   // Example implementational code for IDL interface RTM::Manager
   //
   ManagerServant::ManagerServant()
-    : m_mgr(::RTC::Manager::instance())
+    : rtclog("ManagerServant"),
+      m_mgr(::RTC::Manager::instance()),
+      m_isMaster(false)
   {

再テスト、チェックお願いします。>宮本君

#2 Updated by n-miyamoto about 4 years ago

  • Status changed from 新規 to 解決
  • % Done changed from 90 to 100

ManagerServantTestsのtest_add_master_manager関数で正常に動作することを確認

#3 Updated by n-ando over 3 years ago

  • Status changed from 解決 to 終了

#4 Updated by katami over 3 years ago

  • Related to バグ #4264: マネージャをスレーブに設定してもis_master関数がTrueを返す問題 added

Also available in: Atom PDF