mirror of
https://github.com/zrepl/zrepl.git
synced 2025-01-09 15:58:33 +01:00
replication/diff: replace invalid comparison of CreateTXG with Creation
This commit is contained in:
parent
4336af295f
commit
be57d6ce8e
@ -65,7 +65,16 @@ func IncrementalPath(receiver, sender []*FilesystemVersion) (incPath []*Filesyst
|
|||||||
}
|
}
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
if receiver[mrcaRcv].CreateTXG < sender[mrcaSnd].CreateTXG {
|
receiverCreation, err := receiver[mrcaRcv].CreationAsTime()
|
||||||
|
if err != nil {
|
||||||
|
panic(err) // FIXME move this to a sorting phase before
|
||||||
|
}
|
||||||
|
senderCreation, err := sender[mrcaSnd].CreationAsTime()
|
||||||
|
if err != nil {
|
||||||
|
panic(err) // FIXME move this to the sorting phase before
|
||||||
|
}
|
||||||
|
|
||||||
|
if receiverCreation.Before(senderCreation) {
|
||||||
mrcaSnd--
|
mrcaSnd--
|
||||||
} else {
|
} else {
|
||||||
mrcaRcv--
|
mrcaRcv--
|
||||||
|
Loading…
Reference in New Issue
Block a user