mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-22 18:43:35 +08:00
add distributed lock manager
This commit is contained in:
@@ -97,7 +97,7 @@ type FilerServer struct {
|
||||
knownListeners map[int32]int32
|
||||
|
||||
// distributed lock manager
|
||||
dlm *lock_manager.LockManager
|
||||
dlm *lock_manager.DistributedLockManager
|
||||
}
|
||||
|
||||
func NewFilerServer(defaultMux, readonlyMux *http.ServeMux, option *FilerOption) (fs *FilerServer, err error) {
|
||||
@@ -185,7 +185,7 @@ func NewFilerServer(defaultMux, readonlyMux *http.ServeMux, option *FilerOption)
|
||||
fs.filer.Shutdown()
|
||||
})
|
||||
|
||||
fs.dlm = lock_manager.NewLockManager()
|
||||
fs.dlm = lock_manager.NewDistributedLockManager()
|
||||
fs.filer.LockRing.SetTakeSnapshotCallback(fs.OnDlmChangeSnapshot)
|
||||
|
||||
return fs, nil
|
||||
|
Reference in New Issue
Block a user