mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-12 23:51:03 +00:00
band aid
This commit is contained in:
parent
72b1048134
commit
938995fe36
1 changed files with 11 additions and 11 deletions
|
|
@ -467,19 +467,19 @@ func (self *Fragment) processCommand(req Command) {
|
|||
func (self *Fragment) ServeFragment(loadChan chan Command) {
|
||||
for {
|
||||
select {
|
||||
// case req := <-self.requestChan:
|
||||
// self.processCommand(req)
|
||||
// default:
|
||||
// select {
|
||||
case req := <-self.requestChan:
|
||||
self.processCommand(req)
|
||||
default:
|
||||
select {
|
||||
case req := <-self.requestChan:
|
||||
self.processCommand(req)
|
||||
case req := <-loadChan:
|
||||
self.processCommand(req)
|
||||
case wg := <-self.exit:
|
||||
log.Println("Fragment Shutdown")
|
||||
self.Persist()
|
||||
wg.Done()
|
||||
}
|
||||
case req := <-loadChan:
|
||||
self.processCommand(req)
|
||||
case wg := <-self.exit:
|
||||
log.Println("Fragment Shutdown")
|
||||
self.Persist()
|
||||
wg.Done()
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue