MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / pendingLogsAsString

Function pendingLogsAsString

db/change_cache_test.go:3235–3246  ·  view source on GitHub ↗
(pendingLogs LogPriorityQueue)

Source from the content-addressed store, hash-verified

3233}
3234
3235func pendingLogsAsString(pendingLogs LogPriorityQueue) string {
3236 count := len(pendingLogs)
3237 result := "{"
3238 delimiter := ""
3239 for i := 0; i < count; i++ {
3240 pendingEntry := heap.Pop(&pendingLogs).(*LogEntry)
3241 result += fmt.Sprintf("%s[%d, %d]", delimiter, pendingEntry.Sequence, pendingEntry.EndSequence)
3242 delimiter = ","
3243 }
3244 result += "}"
3245 return result
3246}

Callers 1

AssertPendingLogsFunction · 0.85

Calls 1

PopMethod · 0.80

Tested by

no test coverage detected