Zhen Ye 4d69898cb2
enhance: support single pchannel level transaction (#35289)
issue: #33285

- support transaction on single wal.
- last confirmed message id can still be used when enable transaction.
- add fence operation for segment allocation interceptor.

---------

Signed-off-by: chyezh <chyezh@outlook.com>
2024-08-19 21:22:56 +08:00

33 lines
684 B
Go

//go:build test
// +build test
package walimplstest
import (
"github.com/milvus-io/milvus/pkg/streaming/util/message"
"github.com/milvus-io/milvus/pkg/streaming/walimpls"
"github.com/milvus-io/milvus/pkg/streaming/walimpls/registry"
)
const (
WALName = "walimplstest"
)
func init() {
// register the builder to the registry.
registry.RegisterBuilder(&openerBuilder{})
message.RegisterMessageIDUnmsarshaler(WALName, UnmarshalTestMessageID)
}
var _ walimpls.OpenerBuilderImpls = &openerBuilder{}
type openerBuilder struct{}
func (o *openerBuilder) Name() string {
return WALName
}
func (o *openerBuilder) Build() (walimpls.OpenerImpls, error) {
return &opener{}, nil
}