MCPcopy Index your code
hub / github.com/apache/devlake / Close

Method Close

backend/helpers/pluginhelper/api/batch_save.go:143–150  ·  view source on GitHub ↗

Close would flush the cache and release resources

()

Source from the content-addressed store, hash-verified

141
142// Close would flush the cache and release resources
143func (c *BatchSave) Close() errors.Error {
144 c.mutex.Lock()
145 defer c.mutex.Unlock()
146 if c.current > 0 {
147 return c.flushWithoutLocking()
148 }
149 return nil
150}
151
152func getKeyValue(iface interface{}, primaryKey []reflect.StructField) string {
153 var ss []string

Callers 2

TransformColumnsFunction · 0.95
CopyTableColumnsFunction · 0.95

Calls 1

flushWithoutLockingMethod · 0.95

Tested by

no test coverage detected