Exemple #1
0
 /// <summary>
 /// Get the value of the active partition index used by the producer of this log. Consumers may have a different active
 /// index if they are running behind. The read is done with volatile semantics.
 /// </summary>
 /// <param name="logMetaDataBuffer"> containing the meta data. </param>
 /// <returns> the value of the active partition index used by the producer of this log. </returns>
 public static int ActivePartitionIndex(UnsafeBuffer logMetaDataBuffer)
 {
     return logMetaDataBuffer.GetIntVolatile(LOG_ACTIVE_PARTITION_INDEX_OFFSET);
 }