mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-05 08:10:50 +00:00
changed to lock to just db/slice
This commit is contained in:
parent
e97c910158
commit
474eb8eb96
1 changed files with 2 additions and 1 deletions
|
|
@ -119,7 +119,8 @@ func (self *TopologyMapper) MakeFragments(db string, slice_int int) error {
|
|||
func (self *TopologyMapper) AllocateFragment(db, frame string, slice_int int) error {
|
||||
//get Lock to create the fragment
|
||||
ttl := uint64(config.GetIntDefault("fragment_alloc_lock_time_secs", 600))
|
||||
lock_key := fmt.Sprintf("%s/lock/%s-%s-%d", self.namespace, db, frame, slice_int)
|
||||
//lock_key := fmt.Sprintf("%s/lock/%s-%s-%d", self.namespace, db, frame, slice_int)
|
||||
lock_key := fmt.Sprintf("%s/lock/%s-%d", self.namespace, db, slice_int)
|
||||
response, err := self.service.Etcd.RawCreate(lock_key, "0", ttl)
|
||||
|
||||
if err == nil {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue