replication handle cases when entry already exists

This commit is contained in:
Chris Lu
2018-09-25 09:27:03 -07:00
parent 60c1ada4c1
commit 31ed352ab6
3 changed files with 36 additions and 11 deletions

View File

@@ -8,7 +8,8 @@ import (
type ReplicationSink interface {
DeleteEntry(key string, entry *filer_pb.Entry, deleteIncludeChunks bool) error
CreateEntry(key string, entry *filer_pb.Entry) error
UpdateEntry(key string, oldEntry, newEntry *filer_pb.Entry, deleteIncludeChunks bool) error
UpdateEntry(key string, oldEntry, newEntry, existingEntry *filer_pb.Entry, deleteIncludeChunks bool) error
LookupEntry(key string) (entry *filer_pb.Entry, err error)
GetSinkToDirectory() string
SetSourceFiler(s *source.FilerSource)
}