mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-11 15:21:02 +00:00
fix concurrent field creation race condition
This commit is contained in:
parent
ac8c4ed5fe
commit
07f8f5b8e0
1 changed files with 1 additions and 1 deletions
|
|
@ -601,7 +601,7 @@ func (s *Server) receiveMessage(m Message) error {
|
|||
return fmt.Errorf("local index not found: %s", obj.Index)
|
||||
}
|
||||
opt := obj.Meta
|
||||
_, err := idx.createField(obj.Field, *opt)
|
||||
_, err := idx.createFieldIfNotExists(obj.Field, *opt)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue