From c85c46961584531e529057a702122eeeea6bdcd1 Mon Sep 17 00:00:00 2001 From: Alex Sarkesian Date: Thu, 9 Dec 2021 15:59:08 -0500 Subject: [PATCH] storage: clean up deprecated comment This change fixes a deprecated comment which referred to the `isSeparated` return parameter of the `mvccGetMetadata` function, which was removed #72536. Release note: None --- pkg/storage/mvcc.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/storage/mvcc.go b/pkg/storage/mvcc.go index af0668da1a47..9d861054bb48 100644 --- a/pkg/storage/mvcc.go +++ b/pkg/storage/mvcc.go @@ -937,15 +937,15 @@ func MVCCGetAsTxn( // mvccGetMetadata returns or reconstructs the meta key for the given key. // A prefix scan using the iterator is performed, resulting in one of the // following successful outcomes: -// 1) iterator finds nothing; returns (false, false, 0, 0, nil). +// 1) iterator finds nothing; returns (false, 0, 0, nil). // 2) iterator finds an explicit meta key; unmarshals and returns its size. -// ok is set to true, and isSeparated represents whether the explicit -// meta was separated or not. +// ok is set to true. // 3) iterator finds a value, i.e. the meta key is implicit. // In this case, it accounts for the size of the key with the portion // of the user key found which is not the MVCC timestamp suffix (since // that is the usual contribution of the meta key). The value size returned -// will be zero. isSeparated is false. +// will be zero, as there is no stored MVCCMetadata. +// ok is set to true. // The passed in MVCCMetadata must not be nil. // // If the supplied iterator is nil, no seek operation is performed. This is