rename backup to local_incremental and use mtime
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
package backupsink
|
||||
|
||||
import (
|
||||
"github.com/chrislusf/seaweedfs/weed/replication/sink"
|
||||
"github.com/chrislusf/seaweedfs/weed/replication/sink/localsink"
|
||||
)
|
||||
|
||||
type BackupSink struct {
|
||||
localsink.LocalSink
|
||||
}
|
||||
|
||||
func (backupsink *BackupSink) GetName() string {
|
||||
return "backup"
|
||||
}
|
||||
|
||||
func init() {
|
||||
sink.Sinks = append(sink.Sinks, &BackupSink{})
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package localincrementalsink
|
||||
|
||||
import (
|
||||
"github.com/chrislusf/seaweedfs/weed/replication/sink"
|
||||
"github.com/chrislusf/seaweedfs/weed/replication/sink/localsink"
|
||||
)
|
||||
|
||||
type LocalIncSink struct {
|
||||
localsink.LocalSink
|
||||
}
|
||||
|
||||
func (localincsink *LocalIncSink) GetName() string {
|
||||
return "local_incremental"
|
||||
}
|
||||
|
||||
func init() {
|
||||
sink.Sinks = append(sink.Sinks, &LocalIncSink{})
|
||||
}
|
||||
Reference in New Issue
Block a user