MCPcopy Create free account
hub / github.com/Shopify/ghostferry / NewCursorWithoutRowLock

Method NewCursorWithoutRowLock

cursor.go:60–64  ·  view source on GitHub ↗

returns a new Cursor with an embedded copy of itself

(table *TableSchema, startPaginationKey, maxPaginationKey PaginationKey)

Source from the content-addressed store, hash-verified

58
59// returns a new Cursor with an embedded copy of itself
60func (c *CursorConfig) NewCursorWithoutRowLock(table *TableSchema, startPaginationKey, maxPaginationKey PaginationKey) *Cursor {
61 cursor := c.NewCursor(table, startPaginationKey, maxPaginationKey)
62 cursor.RowLock = false
63 return cursor
64}
65
66func (c CursorConfig) GetBatchSize(schemaName string, tableName string) uint64 {
67 if c.BatchSizePerTableOverride != nil {

Callers 1

Calls 1

NewCursorMethod · 0.95

Tested by

no test coverage detected