mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-30 23:45:28 +08:00
issue: #38399 - Add a pchannel level checkpoint for flush processing - Refactor the recovery of flushers of wal - make a shared wal scanner first, then make multi datasyncservice on it Signed-off-by: chyezh <chyezh@outlook.com>
23 lines
705 B
Go
23 lines
705 B
Go
package flusher
|
|
|
|
import (
|
|
"github.com/milvus-io/milvus/internal/streamingnode/server/flusher/flusherimpl"
|
|
"github.com/milvus-io/milvus/internal/streamingnode/server/wal/interceptors"
|
|
)
|
|
|
|
// NewInterceptorBuilder creates a new flusher interceptor builder.
|
|
func NewInterceptorBuilder() interceptors.InterceptorBuilder {
|
|
return &interceptorBuilder{}
|
|
}
|
|
|
|
// interceptorBuilder is the builder for flusher interceptor.
|
|
type interceptorBuilder struct{}
|
|
|
|
// Build creates a new flusher interceptor.
|
|
func (b *interceptorBuilder) Build(param interceptors.InterceptorBuildParam) interceptors.Interceptor {
|
|
flusher := flusherimpl.RecoverWALFlusher(param)
|
|
return &flusherAppendInterceptor{
|
|
flusher: flusher,
|
|
}
|
|
}
|