mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
For on-prem serverless, if we restart the process containing the controller and computer(s), when they come back up, the controller doesn't know that the computers have been restarted, so it doesn't send them a directive. This change forces the controller to send a directive upon startup by a computer.
17 lines
418 B
Go
17 lines
418 B
Go
package controller
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/featurebasedb/featurebase/v3/dax"
|
|
)
|
|
|
|
type Transactor interface {
|
|
// Start is useful for Transactor implementations which need to establish a
|
|
// connection. We don't want to do that in the NewImplementation() function;
|
|
// we want that to happen upon Start().
|
|
Start() error
|
|
|
|
BeginTx(ctx context.Context, writable bool) (dax.Transaction, error)
|
|
Close() error
|
|
}
|