Browse Source

Merge pull request #874 from dlzr/patch-1

Fix memory alignment of int64 variable used as atomic.
Evan Huus 8 years ago
parent
commit
2f2e2e2ce8
1 changed files with 1 additions and 1 deletions
  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
 }
 
 ///////////////////////////////////////////////////