diff options
author | Ted Trask <ttrask01@yahoo.com> | 2010-10-25 07:10:37 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2010-10-25 07:10:37 +0000 |
commit | b872ac422ea086f610727f287d5fa4bc3531c0c5 (patch) | |
tree | ba83c2dcf8b750b50f1eeaaf801726877776672b | |
parent | 804f021d939d346e96066079311137e5268b993e (diff) | |
download | acf-weblog-b872ac422ea086f610727f287d5fa4bc3531c0c5.tar.bz2 acf-weblog-b872ac422ea086f610727f287d5fa4bc3531c0c5.tar.xz |
Fixed bug caused by postgresql failing to delete a savepoint when you create a new one with the same name.
Symptom was running out of shared memory in postgres because there were thousands of savepoints.
-rw-r--r-- | weblog-model.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/weblog-model.lua b/weblog-model.lua index f5f339c..8db7490 100644 --- a/weblog-model.lua +++ b/weblog-model.lua @@ -887,6 +887,8 @@ local function importlogfile(source, cookiesfile, file, parselog_func, importlog else con:execute("START TRANSACTION") end + else + assert(con:execute("RELEASE SAVEPOINT before_line")) end end con:execute("COMMIT") |