mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-12 23:51:03 +00:00
frame rowlabel and options read-only lock
This commit is contained in:
parent
023dbbcdfd
commit
1210489f76
1 changed files with 4 additions and 4 deletions
8
frame.go
8
frame.go
|
|
@ -166,9 +166,9 @@ func (f *Frame) SetRowLabel(v string) error {
|
|||
|
||||
// RowLabel returns the row label.
|
||||
func (f *Frame) RowLabel() string {
|
||||
f.mu.Lock()
|
||||
f.mu.RLock()
|
||||
v := f.rowLabel
|
||||
f.mu.Unlock()
|
||||
f.mu.RUnlock()
|
||||
return v
|
||||
}
|
||||
|
||||
|
|
@ -217,8 +217,8 @@ func (f *Frame) CacheSize() uint32 {
|
|||
|
||||
// Options returns all options for this frame.
|
||||
func (f *Frame) Options() FrameOptions {
|
||||
f.mu.Lock()
|
||||
defer f.mu.Unlock()
|
||||
f.mu.RLock()
|
||||
defer f.mu.RUnlock()
|
||||
return f.options()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue