mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-07 09:38:39 +08:00
issue: #41544 - add lock interceptor into wal. - use recovery and shardmanager to replace the original implementation of segment assignment. - remove redundant implementation and unittest. - remove redundant proto definition. - use 2 streamingnode in e2e. --------- Signed-off-by: chyezh <chyezh@outlook.com>
20 lines
478 B
Go
20 lines
478 B
Go
package shard
|
|
|
|
import (
|
|
"github.com/milvus-io/milvus/internal/streamingnode/server/wal/interceptors"
|
|
)
|
|
|
|
func NewInterceptorBuilder() interceptors.InterceptorBuilder {
|
|
return &interceptorBuilder{}
|
|
}
|
|
|
|
type interceptorBuilder struct{}
|
|
|
|
func (b *interceptorBuilder) Build(param *interceptors.InterceptorBuildParam) interceptors.Interceptor {
|
|
shardInterceptor := &shardInterceptor{
|
|
shardManager: param.ShardManager,
|
|
}
|
|
shardInterceptor.initOpTable()
|
|
return shardInterceptor
|
|
}
|