This commit is contained in:
Chris Lu
2020-04-19 23:54:32 -07:00
parent df25ed3c5b
commit 2955b96ef1
4 changed files with 9 additions and 7 deletions

View File

@@ -35,7 +35,7 @@ type Filer struct {
FsyncBuckets []string
buckets *FilerBuckets
Cipher bool
metaLogBuffer *log_buffer.LogBuffer
MetaLogBuffer *log_buffer.LogBuffer
metaLogCollection string
metaLogReplication string
}
@@ -47,7 +47,7 @@ func NewFiler(masters []string, grpcDialOption grpc.DialOption, filerHost string
fileIdDeletionQueue: util.NewUnboundedQueue(),
GrpcDialOption: grpcDialOption,
}
f.metaLogBuffer = log_buffer.NewLogBuffer(time.Minute, f.logFlushFunc, notifyFn)
f.MetaLogBuffer = log_buffer.NewLogBuffer(time.Minute, f.logFlushFunc, notifyFn)
f.metaLogCollection = collection
f.metaLogReplication = replication
@@ -316,6 +316,6 @@ func (f *Filer) cacheSetDirectory(dirpath string, dirEntry *Entry, level int) {
}
func (f *Filer) Shutdown() {
f.metaLogBuffer.Shutdown()
f.MetaLogBuffer.Shutdown()
f.store.Shutdown()
}