mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
Unexport TranslateFile.IsReadOnly
This commit is contained in:
parent
1af66417e1
commit
ed0372b1d0
1 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue