getLatestVbUUID returns the VbUUID associated with the highest sequence in the failover log
(failoverLog []gocbcore.FailoverEntry)
| 654 | |
| 655 | // getLatestVbUUID returns the VbUUID associated with the highest sequence in the failover log |
| 656 | func getLatestVbUUID(failoverLog []gocbcore.FailoverEntry) (vbUUID gocbcore.VbUUID) { |
| 657 | if len(failoverLog) == 0 { |
| 658 | return 0 |
| 659 | } |
| 660 | entry := failoverLog[len(failoverLog)-1] |
| 661 | return entry.VbUUID |
| 662 | } |
| 663 | |
| 664 | func (dc *DCPClient) GetMetadataKeyPrefix() string { |
| 665 | return dc.metadata.GetKeyPrefix() |