File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,8 @@ class BlackBoxPersistence : public ::testing::Test
7676 }
7777 }
7878
79+ std::cout << " Last received sequence was " << reader.get_last_received_sequence_number () << std::endl;
80+
7981 std::cout << " Destroying reader..." << std::endl;
8082 reader.destroy ();
8183 std::cout << " Destroying writer..." << std::endl;
Original file line number Diff line number Diff line change @@ -223,6 +223,10 @@ class RTPSWithRegistrationReader
223223 });
224224 }
225225
226+ eprosima::fastrtps::rtps::SequenceNumber_t get_last_received_sequence_number () const
227+ {
228+ return last_seq_;
229+ }
226230
227231 void wait_discovery ()
228232 {
@@ -304,7 +308,7 @@ class RTPSWithRegistrationReader
304308
305309 std::cout << " Initializing persistent READER " << reader_attr_.endpoint .persistence_guid << " with file " << filename << std::endl;
306310
307- return durability (eprosima::fastrtps::rtps::DurabilityKind_t::PERSISTENT )
311+ return durability (eprosima::fastrtps::rtps::DurabilityKind_t::TRANSIENT )
308312 .add_property (" dds.persistence.plugin" , " builtin.SQLITE3" )
309313 .add_property (" dds.persistence.sqlite3.filename" , filename);
310314 }
You can’t perform that action at this time.
0 commit comments