mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-29 06:55:27 +08:00
issue: #44123 - support replicate message in wal of milvus. - support CDC-replicate recovery from wal. - fix some CDC replicator bugs Signed-off-by: chyezh <chyezh@outlook.com>
24 lines
707 B
Go
24 lines
707 B
Go
package lock
|
|
|
|
import (
|
|
"github.com/milvus-io/milvus/internal/streamingnode/server/wal/interceptors"
|
|
"github.com/milvus-io/milvus/pkg/v2/util/lock"
|
|
)
|
|
|
|
// NewInterceptorBuilder creates a new redo interceptor builder.
|
|
func NewInterceptorBuilder() interceptors.InterceptorBuilder {
|
|
return &interceptorBuilder{}
|
|
}
|
|
|
|
// interceptorBuilder is the builder for redo interceptor.
|
|
type interceptorBuilder struct{}
|
|
|
|
// Build creates a new redo interceptor.
|
|
func (b *interceptorBuilder) Build(param *interceptors.InterceptorBuildParam) interceptors.Interceptor {
|
|
return &lockAppendInterceptor{
|
|
channel: param.ChannelInfo,
|
|
vchannelLocker: lock.NewKeyLock[string](),
|
|
txnManager: param.TxnManager,
|
|
}
|
|
}
|