Procházet zdrojové kódy

Fix memory alignment of int64 variable used as atomic.

This fixes a test crash on 32-bit architectures.

https://bugs.debian.org/cgi-bin/bugreport.cgi?archive=no&bug=860705
David Lazăr před 9 roky
rodič
revize
68958ef91f
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      mocks/consumer.go

+ 1 - 1
mocks/consumer.go

@@ -178,6 +178,7 @@ func (c *Consumer) ExpectConsumePartition(topic string, partition int32, offset
 // Errors and Messages channel, you should specify what values will be provided on these
 // channels using YieldMessage and YieldError.
 type PartitionConsumer struct {
+	highWaterMarkOffset     int64
 	l                       sync.Mutex
 	t                       ErrorReporter
 	topic                   string
@@ -189,7 +190,6 @@ type PartitionConsumer struct {
 	consumed                bool
 	errorsShouldBeDrained   bool
 	messagesShouldBeDrained bool
-	highWaterMarkOffset     int64
 }
 
 ///////////////////////////////////////////////////