Skip to content

Document that Unlock leaves the Lock object unusable (because it calls l.conn.Close) #9

Closed

Description

@timbunce

After calling lock.Unlock() any further use of the lock object will get sql.ErrConnDone errors.

The docs say

Multiple lock requests stack, so that if the resource is locked three times it must then be unlocked three times.

but unlocking multiple times not possible.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions