Skip to content

Commit

Permalink
less locking in arrHlp
Browse files Browse the repository at this point in the history
  • Loading branch information
tgulacsi committed Nov 13, 2017
1 parent 07e961a commit 0181a12
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions util_arr.go
Expand Up @@ -78,8 +78,6 @@ func (a *arrHlp) ensureFetchLength(length int) {
if length <= 0 || length >= MaxFetchLen {
length = MaxFetchLen
}
a.Lock()
defer a.Unlock()
if cap(a.nullInds) >= length {
a.nullInds = a.nullInds[:length]
} else {
Expand Down Expand Up @@ -117,8 +115,6 @@ func (a *arrHlp) ensureBindArrLength(
length, capacity *int,
isAssocArray bool,
) (iterations uint32, curlenp *C.ub4, needsAppend bool) {
a.Lock()
defer a.Unlock()
a.curlen = C.ub4(*length) // the real length, not L!
if isAssocArray {
// for PL/SQL associative arrays
Expand Down Expand Up @@ -182,8 +178,6 @@ func (a *arrHlp) close() error {
if a == nil {
return nil
}
a.Lock()
defer a.Unlock()
if a.isAssocArr {
return nil
}
Expand Down

0 comments on commit 0181a12

Please sign in to comment.