From d78acd961cc3bf77f3e1ba0707b66ee187600c73 Mon Sep 17 00:00:00 2001 From: Carlos Salguero Date: Mon, 5 Apr 2021 14:45:46 -0300 Subject: [PATCH] PMM-7689 Updated data type for getLastErrorDefaults.w (#484) This field is not being used by any tool but it is needed to decode bigger structures having it. Since the value can be an int to indicate the number 1-primary, etc, or 'majority', I've changed the field type from int to interface{} --- src/go/mongolib/proto/replstatus.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/go/mongolib/proto/replstatus.go b/src/go/mongolib/proto/replstatus.go index 2c123321..72e9f0cb 100644 --- a/src/go/mongolib/proto/replstatus.go +++ b/src/go/mongolib/proto/replstatus.go @@ -75,8 +75,8 @@ type RSConfig struct { } type LastErrorDefaults struct { - W int32 `bson:"w"` - WTimeout int32 `bson:"wtimeout"` + W interface{} `bson:"w"` + WTimeout int32 `bson:"wtimeout"` } type RSSettings struct {