瀏覽代碼

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 9 年之前
父節點
當前提交
68958ef91f
共有 1 個文件被更改,包括 1 次插入1 次删除
  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
 }
 
 ///////////////////////////////////////////////////