Skip to content

Commit 898631f

Browse files
committed
Fixing micro partitions
1 parent ba1765e commit 898631f

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

srcCxx/shape_main.cxx

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,8 @@
5757
#define GET_TOPIC_DESCRIPTION(dr) dr->get_topicdescription()
5858
#endif
5959
#ifndef ADD_PARTITION
60-
#if defined(RTI_CONNEXT_MICRO)
61-
#define ADD_PARTITION(field, value)
62-
#else
6360
#define ADD_PARTITION(field, value) StringSeq_push(field.name, value)
6461
#endif
65-
#endif
6662

6763
using namespace DDS;
6864

@@ -857,9 +853,9 @@ class ShapeApplication {
857853
pub->get_default_datawriter_qos( dw_qos );
858854

859855
#if defined (RTI_CONNEXT_MICRO)
860-
dw_qos.resource_limits.max_instances = 500;
861-
dw_qos.resource_limits.max_samples = 500;
862-
dw_qos.resource_limits.max_samples_per_instance = 500;
856+
dw_qos.resource_limits.max_instances = 500;
857+
dw_qos.resource_limits.max_samples = 500;
858+
dw_qos.resource_limits.max_samples_per_instance = 500;
863859
#endif
864860

865861
dw_qos.reliability FIELD_ACCESSOR.kind = options->reliability_kind;
@@ -922,7 +918,12 @@ class ShapeApplication {
922918
dw_qos.history FIELD_ACCESSOR.depth = options->history_depth;
923919
}
924920
else if ( options->history_depth == 0 ) {
921+
#if defined (RTI_CONNEXT_MICRO)
922+
dw_qos.history FIELD_ACCESSOR.kind = KEEP_LAST_HISTORY_QOS;
923+
dw_qos.history FIELD_ACCESSOR.depth = 500;
924+
#else
925925
dw_qos.history FIELD_ACCESSOR.kind = KEEP_ALL_HISTORY_QOS;
926+
#endif
926927
}
927928
logger.log_message(" History = " + QosUtils::to_string(dw_qos.history FIELD_ACCESSOR.kind), Verbosity::DEBUG);
928929
if (dw_qos.history FIELD_ACCESSOR.kind == KEEP_LAST_HISTORY_QOS){
@@ -975,11 +976,11 @@ class ShapeApplication {
975976
sub->get_default_datareader_qos( dr_qos );
976977

977978
#if defined (RTI_CONNEXT_MICRO)
978-
dr_qos.resource_limits.max_instances = 500;
979-
dr_qos.resource_limits.max_samples = 500;
980-
dr_qos.resource_limits.max_samples_per_instance = 500;
981-
dr_qos.reader_resource_limits.max_remote_writers = 2;
982-
dr_qos.reader_resource_limits.max_samples_per_remote_writer = 500;
979+
dr_qos.resource_limits.max_instances = 500;
980+
dr_qos.resource_limits.max_samples = 500;
981+
dr_qos.resource_limits.max_samples_per_instance = 500;
982+
dr_qos.reader_resource_limits.max_remote_writers = 2;
983+
dr_qos.reader_resource_limits.max_samples_per_remote_writer = 500;
983984
#endif
984985

985986
dr_qos.reliability FIELD_ACCESSOR.kind = options->reliability_kind;

0 commit comments

Comments
 (0)