2021-12-23 12:07:10 +08:00
|
|
|
// Licensed to the LF AI & Data foundation under one
|
|
|
|
// or more contributor license agreements. See the NOTICE file
|
|
|
|
// distributed with this work for additional information
|
|
|
|
// regarding copyright ownership. The ASF licenses this file
|
|
|
|
// to you under the Apache License, Version 2.0 (the
|
|
|
|
// "License"); you may not use this file except in compliance
|
2021-04-19 11:32:24 +08:00
|
|
|
// with the License. You may obtain a copy of the License at
|
|
|
|
//
|
2021-12-23 12:07:10 +08:00
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
2021-04-19 11:32:24 +08:00
|
|
|
//
|
2021-12-23 12:07:10 +08:00
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
2021-04-19 11:32:24 +08:00
|
|
|
|
2020-12-09 09:55:56 +08:00
|
|
|
package storage
|
|
|
|
|
|
|
|
import (
|
|
|
|
"bytes"
|
|
|
|
"encoding/binary"
|
2022-09-09 22:12:34 +08:00
|
|
|
"fmt"
|
2021-07-07 19:10:07 +08:00
|
|
|
"io"
|
2021-03-05 10:15:27 +08:00
|
|
|
|
2023-02-26 11:31:49 +08:00
|
|
|
"github.com/cockroachdb/errors"
|
|
|
|
|
2022-10-16 20:49:27 +08:00
|
|
|
"github.com/milvus-io/milvus-proto/go-api/schemapb"
|
2023-04-06 19:14:32 +08:00
|
|
|
"github.com/milvus-io/milvus/pkg/common"
|
|
|
|
"github.com/milvus-io/milvus/pkg/util/typeutil"
|
2020-12-09 09:55:56 +08:00
|
|
|
)
|
|
|
|
|
2021-12-14 19:55:17 +08:00
|
|
|
// EventTypeCode represents event type by code
|
2020-12-09 09:55:56 +08:00
|
|
|
type EventTypeCode int8
|
|
|
|
|
2021-12-14 19:55:17 +08:00
|
|
|
// EventTypeCode definitions
|
2020-12-09 09:55:56 +08:00
|
|
|
const (
|
|
|
|
DescriptorEventType EventTypeCode = iota
|
|
|
|
InsertEventType
|
|
|
|
DeleteEventType
|
|
|
|
CreateCollectionEventType
|
|
|
|
DropCollectionEventType
|
|
|
|
CreatePartitionEventType
|
|
|
|
DropPartitionEventType
|
2021-09-29 09:52:12 +08:00
|
|
|
IndexFileEventType
|
2020-12-09 11:18:13 +08:00
|
|
|
EventTypeEnd
|
2020-12-09 09:55:56 +08:00
|
|
|
)
|
|
|
|
|
2021-12-14 19:55:17 +08:00
|
|
|
// String returns the string representation
|
2020-12-09 09:55:56 +08:00
|
|
|
func (code EventTypeCode) String() string {
|
2021-07-07 19:10:07 +08:00
|
|
|
codes := map[EventTypeCode]string{
|
|
|
|
DescriptorEventType: "DescriptorEventType",
|
|
|
|
InsertEventType: "InsertEventType",
|
|
|
|
DeleteEventType: "DeleteEventType",
|
|
|
|
CreateCollectionEventType: "CreateCollectionEventType",
|
|
|
|
DropCollectionEventType: "DropCollectionEventType",
|
|
|
|
CreatePartitionEventType: "CreatePartitionEventType",
|
|
|
|
DropPartitionEventType: "DropPartitionEventType",
|
2021-09-29 09:52:12 +08:00
|
|
|
IndexFileEventType: "IndexFileEventType",
|
2021-07-07 19:10:07 +08:00
|
|
|
}
|
|
|
|
if eventTypeStr, ok := codes[code]; ok {
|
|
|
|
return eventTypeStr
|
2020-12-09 09:55:56 +08:00
|
|
|
}
|
2021-07-07 19:10:07 +08:00
|
|
|
return "InvalidEventType"
|
2020-12-09 09:55:56 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type descriptorEvent struct {
|
|
|
|
descriptorEventHeader
|
|
|
|
descriptorEventData
|
|
|
|
}
|
|
|
|
|
2021-12-17 22:02:42 +08:00
|
|
|
// GetMemoryUsageInBytes returns descriptor Event memory usage in bytes
|
2020-12-09 09:55:56 +08:00
|
|
|
func (event *descriptorEvent) GetMemoryUsageInBytes() int32 {
|
|
|
|
return event.descriptorEventHeader.GetMemoryUsageInBytes() + event.descriptorEventData.GetMemoryUsageInBytes()
|
|
|
|
}
|
|
|
|
|
2021-12-17 22:02:42 +08:00
|
|
|
// Write writes descriptor event into buffer
|
2020-12-09 09:55:56 +08:00
|
|
|
func (event *descriptorEvent) Write(buffer io.Writer) error {
|
2021-09-23 17:23:54 +08:00
|
|
|
err := event.descriptorEventData.FinishExtra()
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
event.descriptorEventHeader.EventLength = event.descriptorEventHeader.GetMemoryUsageInBytes() + event.descriptorEventData.GetMemoryUsageInBytes()
|
|
|
|
event.descriptorEventHeader.NextPosition = int32(binary.Size(MagicNumber)) + event.descriptorEventHeader.EventLength
|
|
|
|
|
2020-12-09 09:55:56 +08:00
|
|
|
if err := event.descriptorEventHeader.Write(buffer); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if err := event.descriptorEventData.Write(buffer); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-12-14 20:05:09 +08:00
|
|
|
// EventWriter abstracts event writer
|
2020-12-09 09:55:56 +08:00
|
|
|
type EventWriter interface {
|
|
|
|
PayloadWriterInterface
|
|
|
|
// Finish set meta in header and no data can be added to event writer
|
|
|
|
Finish() error
|
|
|
|
// Close release resources
|
2021-12-09 12:37:06 +08:00
|
|
|
Close()
|
2020-12-09 09:55:56 +08:00
|
|
|
// Write serialize to buffer, should call Finish first
|
|
|
|
Write(buffer *bytes.Buffer) error
|
|
|
|
GetMemoryUsageInBytes() (int32, error)
|
2020-12-10 15:50:09 +08:00
|
|
|
SetOffset(offset int32)
|
2020-12-09 09:55:56 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type baseEventWriter struct {
|
|
|
|
eventHeader
|
|
|
|
PayloadWriterInterface
|
|
|
|
isClosed bool
|
|
|
|
isFinish bool
|
|
|
|
offset int32
|
|
|
|
getEventDataSize func() int32
|
|
|
|
writeEventData func(buffer io.Writer) error
|
|
|
|
}
|
|
|
|
|
|
|
|
func (writer *baseEventWriter) GetMemoryUsageInBytes() (int32, error) {
|
|
|
|
data, err := writer.GetPayloadBufferFromWriter()
|
|
|
|
if err != nil {
|
|
|
|
return -1, err
|
|
|
|
}
|
2021-07-07 19:10:07 +08:00
|
|
|
size := writer.getEventDataSize() + writer.eventHeader.GetMemoryUsageInBytes() + int32(len(data))
|
|
|
|
return size, nil
|
2020-12-09 09:55:56 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (writer *baseEventWriter) Write(buffer *bytes.Buffer) error {
|
|
|
|
if err := writer.eventHeader.Write(buffer); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if err := writer.writeEventData(buffer); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
data, err := writer.GetPayloadBufferFromWriter()
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-11-02 18:16:32 +08:00
|
|
|
if err := binary.Write(buffer, common.Endian, data); err != nil {
|
2020-12-09 09:55:56 +08:00
|
|
|
return err
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (writer *baseEventWriter) Finish() error {
|
|
|
|
if !writer.isFinish {
|
|
|
|
writer.isFinish = true
|
|
|
|
if err := writer.FinishPayloadWriter(); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
eventLength, err := writer.GetMemoryUsageInBytes()
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
writer.EventLength = eventLength
|
|
|
|
writer.NextPosition = eventLength + writer.offset
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-12-09 12:37:06 +08:00
|
|
|
func (writer *baseEventWriter) Close() {
|
2020-12-09 09:55:56 +08:00
|
|
|
if !writer.isClosed {
|
|
|
|
writer.isFinish = true
|
|
|
|
writer.isClosed = true
|
2021-12-09 12:37:06 +08:00
|
|
|
writer.ReleasePayloadWriter()
|
2020-12-09 09:55:56 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-12-10 15:50:09 +08:00
|
|
|
func (writer *baseEventWriter) SetOffset(offset int32) {
|
|
|
|
writer.offset = offset
|
|
|
|
}
|
|
|
|
|
2020-12-09 09:55:56 +08:00
|
|
|
type insertEventWriter struct {
|
|
|
|
baseEventWriter
|
|
|
|
insertEventData
|
|
|
|
}
|
|
|
|
|
|
|
|
type deleteEventWriter struct {
|
|
|
|
baseEventWriter
|
|
|
|
deleteEventData
|
|
|
|
}
|
|
|
|
|
|
|
|
type createCollectionEventWriter struct {
|
|
|
|
baseEventWriter
|
|
|
|
createCollectionEventData
|
|
|
|
}
|
|
|
|
|
|
|
|
type dropCollectionEventWriter struct {
|
|
|
|
baseEventWriter
|
|
|
|
dropCollectionEventData
|
|
|
|
}
|
|
|
|
|
|
|
|
type createPartitionEventWriter struct {
|
|
|
|
baseEventWriter
|
|
|
|
createPartitionEventData
|
|
|
|
}
|
|
|
|
|
|
|
|
type dropPartitionEventWriter struct {
|
|
|
|
baseEventWriter
|
|
|
|
dropPartitionEventData
|
|
|
|
}
|
|
|
|
|
2021-09-29 09:52:12 +08:00
|
|
|
type indexFileEventWriter struct {
|
|
|
|
baseEventWriter
|
|
|
|
indexFileEventData
|
|
|
|
}
|
|
|
|
|
2021-04-19 10:36:19 +08:00
|
|
|
func newDescriptorEvent() *descriptorEvent {
|
|
|
|
header := newDescriptorEventHeader()
|
|
|
|
data := newDescriptorEventData()
|
2020-12-09 11:18:13 +08:00
|
|
|
return &descriptorEvent{
|
|
|
|
descriptorEventHeader: *header,
|
|
|
|
descriptorEventData: *data,
|
2021-04-19 10:36:19 +08:00
|
|
|
}
|
2020-12-09 09:55:56 +08:00
|
|
|
}
|
|
|
|
|
2022-09-09 22:12:34 +08:00
|
|
|
func newInsertEventWriter(dataType schemapb.DataType, dim ...int) (*insertEventWriter, error) {
|
|
|
|
var payloadWriter *PayloadWriter
|
|
|
|
var err error
|
|
|
|
if typeutil.IsVectorType(dataType) {
|
|
|
|
if len(dim) != 1 {
|
|
|
|
return nil, fmt.Errorf("incorrect input numbers")
|
|
|
|
}
|
|
|
|
payloadWriter, err = NewPayloadWriter(dataType, dim[0])
|
|
|
|
} else {
|
|
|
|
payloadWriter, err = NewPayloadWriter(dataType)
|
|
|
|
}
|
2020-12-09 09:55:56 +08:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
2021-04-19 10:36:19 +08:00
|
|
|
header := newEventHeader(InsertEventType)
|
|
|
|
data := newInsertEventData()
|
2020-12-09 11:18:13 +08:00
|
|
|
|
2020-12-09 09:55:56 +08:00
|
|
|
writer := &insertEventWriter{
|
|
|
|
baseEventWriter: baseEventWriter{
|
2020-12-09 11:18:13 +08:00
|
|
|
eventHeader: *header,
|
2020-12-09 09:55:56 +08:00
|
|
|
PayloadWriterInterface: payloadWriter,
|
|
|
|
isClosed: false,
|
|
|
|
isFinish: false,
|
|
|
|
},
|
2020-12-09 11:18:13 +08:00
|
|
|
insertEventData: *data,
|
2020-12-09 09:55:56 +08:00
|
|
|
}
|
2020-12-09 11:18:13 +08:00
|
|
|
writer.baseEventWriter.getEventDataSize = writer.insertEventData.GetEventDataFixPartSize
|
2020-12-09 09:55:56 +08:00
|
|
|
writer.baseEventWriter.writeEventData = writer.insertEventData.WriteEventData
|
|
|
|
return writer, nil
|
|
|
|
}
|
|
|
|
|
2020-12-10 15:50:09 +08:00
|
|
|
func newDeleteEventWriter(dataType schemapb.DataType) (*deleteEventWriter, error) {
|
2020-12-09 09:55:56 +08:00
|
|
|
payloadWriter, err := NewPayloadWriter(dataType)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
2021-04-19 10:36:19 +08:00
|
|
|
header := newEventHeader(DeleteEventType)
|
|
|
|
data := newDeleteEventData()
|
2021-07-07 19:10:07 +08:00
|
|
|
|
2020-12-09 09:55:56 +08:00
|
|
|
writer := &deleteEventWriter{
|
|
|
|
baseEventWriter: baseEventWriter{
|
2020-12-09 11:18:13 +08:00
|
|
|
eventHeader: *header,
|
2020-12-09 09:55:56 +08:00
|
|
|
PayloadWriterInterface: payloadWriter,
|
|
|
|
isClosed: false,
|
|
|
|
isFinish: false,
|
|
|
|
},
|
2020-12-09 11:18:13 +08:00
|
|
|
deleteEventData: *data,
|
2020-12-09 09:55:56 +08:00
|
|
|
}
|
2020-12-09 11:18:13 +08:00
|
|
|
writer.baseEventWriter.getEventDataSize = writer.deleteEventData.GetEventDataFixPartSize
|
2020-12-09 09:55:56 +08:00
|
|
|
writer.baseEventWriter.writeEventData = writer.deleteEventData.WriteEventData
|
|
|
|
return writer, nil
|
|
|
|
}
|
2021-07-07 19:10:07 +08:00
|
|
|
|
2020-12-10 15:50:09 +08:00
|
|
|
func newCreateCollectionEventWriter(dataType schemapb.DataType) (*createCollectionEventWriter, error) {
|
2021-03-12 14:22:09 +08:00
|
|
|
if dataType != schemapb.DataType_String && dataType != schemapb.DataType_Int64 {
|
2020-12-10 14:52:42 +08:00
|
|
|
return nil, errors.New("incorrect data type")
|
|
|
|
}
|
|
|
|
|
2020-12-09 09:55:56 +08:00
|
|
|
payloadWriter, err := NewPayloadWriter(dataType)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
2021-04-19 10:36:19 +08:00
|
|
|
header := newEventHeader(CreateCollectionEventType)
|
|
|
|
data := newCreateCollectionEventData()
|
2020-12-09 11:18:13 +08:00
|
|
|
|
2020-12-09 09:55:56 +08:00
|
|
|
writer := &createCollectionEventWriter{
|
|
|
|
baseEventWriter: baseEventWriter{
|
2020-12-09 11:18:13 +08:00
|
|
|
eventHeader: *header,
|
2020-12-09 09:55:56 +08:00
|
|
|
PayloadWriterInterface: payloadWriter,
|
|
|
|
isClosed: false,
|
|
|
|
isFinish: false,
|
|
|
|
},
|
2020-12-09 11:18:13 +08:00
|
|
|
createCollectionEventData: *data,
|
2020-12-09 09:55:56 +08:00
|
|
|
}
|
2020-12-09 11:18:13 +08:00
|
|
|
writer.baseEventWriter.getEventDataSize = writer.createCollectionEventData.GetEventDataFixPartSize
|
2020-12-09 09:55:56 +08:00
|
|
|
writer.baseEventWriter.writeEventData = writer.createCollectionEventData.WriteEventData
|
|
|
|
return writer, nil
|
|
|
|
}
|
2021-07-07 19:10:07 +08:00
|
|
|
|
2020-12-10 15:50:09 +08:00
|
|
|
func newDropCollectionEventWriter(dataType schemapb.DataType) (*dropCollectionEventWriter, error) {
|
2021-03-12 14:22:09 +08:00
|
|
|
if dataType != schemapb.DataType_String && dataType != schemapb.DataType_Int64 {
|
2020-12-10 14:52:42 +08:00
|
|
|
return nil, errors.New("incorrect data type")
|
|
|
|
}
|
|
|
|
|
2020-12-09 09:55:56 +08:00
|
|
|
payloadWriter, err := NewPayloadWriter(dataType)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
2021-04-19 10:36:19 +08:00
|
|
|
header := newEventHeader(DropCollectionEventType)
|
|
|
|
data := newDropCollectionEventData()
|
2021-07-07 19:10:07 +08:00
|
|
|
|
2020-12-09 09:55:56 +08:00
|
|
|
writer := &dropCollectionEventWriter{
|
|
|
|
baseEventWriter: baseEventWriter{
|
2020-12-09 11:18:13 +08:00
|
|
|
eventHeader: *header,
|
2020-12-09 09:55:56 +08:00
|
|
|
PayloadWriterInterface: payloadWriter,
|
|
|
|
isClosed: false,
|
|
|
|
isFinish: false,
|
|
|
|
},
|
2020-12-09 11:18:13 +08:00
|
|
|
dropCollectionEventData: *data,
|
2020-12-09 09:55:56 +08:00
|
|
|
}
|
2020-12-09 11:18:13 +08:00
|
|
|
writer.baseEventWriter.getEventDataSize = writer.dropCollectionEventData.GetEventDataFixPartSize
|
2020-12-09 09:55:56 +08:00
|
|
|
writer.baseEventWriter.writeEventData = writer.dropCollectionEventData.WriteEventData
|
|
|
|
return writer, nil
|
|
|
|
}
|
2021-07-07 19:10:07 +08:00
|
|
|
|
2020-12-10 15:50:09 +08:00
|
|
|
func newCreatePartitionEventWriter(dataType schemapb.DataType) (*createPartitionEventWriter, error) {
|
2021-03-12 14:22:09 +08:00
|
|
|
if dataType != schemapb.DataType_String && dataType != schemapb.DataType_Int64 {
|
2020-12-10 14:52:42 +08:00
|
|
|
return nil, errors.New("incorrect data type")
|
|
|
|
}
|
|
|
|
|
2020-12-09 09:55:56 +08:00
|
|
|
payloadWriter, err := NewPayloadWriter(dataType)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
2021-04-19 10:36:19 +08:00
|
|
|
header := newEventHeader(CreatePartitionEventType)
|
|
|
|
data := newCreatePartitionEventData()
|
2020-12-09 11:18:13 +08:00
|
|
|
|
2020-12-09 09:55:56 +08:00
|
|
|
writer := &createPartitionEventWriter{
|
|
|
|
baseEventWriter: baseEventWriter{
|
2020-12-09 11:18:13 +08:00
|
|
|
eventHeader: *header,
|
2020-12-09 09:55:56 +08:00
|
|
|
PayloadWriterInterface: payloadWriter,
|
|
|
|
isClosed: false,
|
|
|
|
isFinish: false,
|
|
|
|
},
|
2020-12-09 11:18:13 +08:00
|
|
|
createPartitionEventData: *data,
|
2020-12-09 09:55:56 +08:00
|
|
|
}
|
2020-12-09 11:18:13 +08:00
|
|
|
writer.baseEventWriter.getEventDataSize = writer.createPartitionEventData.GetEventDataFixPartSize
|
2020-12-09 09:55:56 +08:00
|
|
|
writer.baseEventWriter.writeEventData = writer.createPartitionEventData.WriteEventData
|
|
|
|
return writer, nil
|
|
|
|
}
|
2021-07-07 19:10:07 +08:00
|
|
|
|
2020-12-10 15:50:09 +08:00
|
|
|
func newDropPartitionEventWriter(dataType schemapb.DataType) (*dropPartitionEventWriter, error) {
|
2021-03-12 14:22:09 +08:00
|
|
|
if dataType != schemapb.DataType_String && dataType != schemapb.DataType_Int64 {
|
2020-12-10 14:52:42 +08:00
|
|
|
return nil, errors.New("incorrect data type")
|
|
|
|
}
|
|
|
|
|
2020-12-09 09:55:56 +08:00
|
|
|
payloadWriter, err := NewPayloadWriter(dataType)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
2021-04-19 10:36:19 +08:00
|
|
|
header := newEventHeader(DropPartitionEventType)
|
|
|
|
data := newDropPartitionEventData()
|
2021-07-07 19:10:07 +08:00
|
|
|
|
2020-12-09 09:55:56 +08:00
|
|
|
writer := &dropPartitionEventWriter{
|
|
|
|
baseEventWriter: baseEventWriter{
|
2020-12-09 11:18:13 +08:00
|
|
|
eventHeader: *header,
|
2020-12-09 09:55:56 +08:00
|
|
|
PayloadWriterInterface: payloadWriter,
|
|
|
|
isClosed: false,
|
|
|
|
isFinish: false,
|
|
|
|
},
|
2020-12-09 11:18:13 +08:00
|
|
|
dropPartitionEventData: *data,
|
2020-12-09 09:55:56 +08:00
|
|
|
}
|
2020-12-09 11:18:13 +08:00
|
|
|
writer.baseEventWriter.getEventDataSize = writer.dropPartitionEventData.GetEventDataFixPartSize
|
2020-12-09 09:55:56 +08:00
|
|
|
writer.baseEventWriter.writeEventData = writer.dropPartitionEventData.WriteEventData
|
|
|
|
return writer, nil
|
|
|
|
}
|
2021-09-29 09:52:12 +08:00
|
|
|
|
2022-11-18 10:47:08 +08:00
|
|
|
func newIndexFileEventWriter(dataType schemapb.DataType) (*indexFileEventWriter, error) {
|
|
|
|
payloadWriter, err := NewPayloadWriter(dataType)
|
2021-09-29 09:52:12 +08:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
header := newEventHeader(IndexFileEventType)
|
|
|
|
data := newIndexFileEventData()
|
|
|
|
|
|
|
|
writer := &indexFileEventWriter{
|
|
|
|
baseEventWriter: baseEventWriter{
|
|
|
|
eventHeader: *header,
|
|
|
|
PayloadWriterInterface: payloadWriter,
|
|
|
|
isClosed: false,
|
|
|
|
isFinish: false,
|
|
|
|
},
|
|
|
|
indexFileEventData: *data,
|
|
|
|
}
|
|
|
|
writer.baseEventWriter.getEventDataSize = writer.indexFileEventData.GetEventDataFixPartSize
|
|
|
|
writer.baseEventWriter.writeEventData = writer.indexFileEventData.WriteEventData
|
|
|
|
|
|
|
|
return writer, nil
|
|
|
|
}
|