Consistent checks for inserting and deleting writer lease duration in participants fibheap
Signed-off-by: Dennis Potman <dennis.potman@adlinktech.com>
This commit is contained in:
		
							parent
							
								
									476507fd5d
								
							
						
					
					
						commit
						1699103b37
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -2961,9 +2961,10 @@ static dds_return_t new_writer_guid (struct writer **wr_out, const struct ddsi_g
 | 
			
		|||
  match_writer_with_local_readers (wr, tnow);
 | 
			
		||||
  sedp_write_writer (wr);
 | 
			
		||||
 | 
			
		||||
  if (wr->lease_duration != NULL && wr->xqos->liveliness.kind == DDS_LIVELINESS_AUTOMATIC)
 | 
			
		||||
  if (wr->lease_duration != NULL)
 | 
			
		||||
  {
 | 
			
		||||
    assert (wr->lease_duration->ldur != T_NEVER);
 | 
			
		||||
    assert (wr->xqos->liveliness.kind == DDS_LIVELINESS_AUTOMATIC);
 | 
			
		||||
    assert (!is_builtin_entityid (wr->e.guid.entityid, NN_VENDORID_ECLIPSE));
 | 
			
		||||
 | 
			
		||||
    /* Store writer lease duration in participant's heap in case of automatic liveliness */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue