| commit | c43d230ac17e1d9f53072f4be9cd1c0a75554157 | [log] [tgz] |
|---|---|---|
| author | Scott Ganyo <scott@ganyo.com> | Mon Feb 06 17:03:13 2017 -0800 |
| committer | Scott Ganyo <scott@ganyo.com> | Mon Feb 06 17:03:13 2017 -0800 |
| tree | 295828994f8a311b077e256635069c071f8121bf | |
| parent | 64f1ead877a9eff682b82eb423eace3f8f6653f6 [diff] |
Ensure txn is rolled back if not committed
diff --git a/listener.go b/listener.go index 7dcd4b6..0837149 100644 --- a/listener.go +++ b/listener.go
@@ -470,6 +470,7 @@ log.Error("Unable to create transaction") return } + defer txn.Rollback() var rows []common.Row ok := true