From ed0372b1d002555c6afbcc9704e1cc23f35d53d4 Mon Sep 17 00:00:00 2001 From: Cody Soyland Date: Thu, 5 Jul 2018 21:54:55 -0500 Subject: [PATCH] Unexport TranslateFile.IsReadOnly --- translate.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/translate.go b/translate.go index 04922b7a6..4b56f83c3 100644 --- a/translate.go +++ b/translate.go @@ -150,8 +150,8 @@ func (s *TranslateFile) Size() int64 { return n } -// IsReadOnly returns true if this store is being replicated from a primary store. -func (s *TranslateFile) IsReadOnly() bool { +// isReadOnly returns true if this store is being replicated from a primary store. +func (s *TranslateFile) isReadOnly() bool { return s.PrimaryTranslateStore != nil } @@ -351,7 +351,7 @@ func (s *TranslateFile) TranslateColumnsToUint64(index string, values []string) s.mu.RUnlock() // Return error if not all values could be translated and this store is read-only. - if s.IsReadOnly() { + if s.isReadOnly() { return ret, ErrTranslateStoreReadOnly } @@ -457,7 +457,7 @@ func (s *TranslateFile) TranslateRowsToUint64(index, frame string, values []stri s.mu.RUnlock() // Return error if not all values could be translated and this store is read-only. - if s.IsReadOnly() { + if s.isReadOnly() { return ret, ErrTranslateStoreReadOnly }