aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorseebs <seebs@seebs.net>2016-07-29 11:16:43 -0500
committerseebs <seebs@seebs.net>2016-07-29 11:17:38 -0500
commitf4b1c752186f4d08f1fadb0ea10ebcde9b0ea251 (patch)
tree7266547cbf34f6276a2db4495e84c789a1481db9
parent0d9071f3090bbd7880558f3b488b236ac19b44fc (diff)
downloadpseudo-f4b1c752186f4d08f1fadb0ea10ebcde9b0ea251.tar.gz
pseudo-f4b1c752186f4d08f1fadb0ea10ebcde9b0ea251.tar.bz2
pseudo-f4b1c752186f4d08f1fadb0ea10ebcde9b0ea251.zip
Remove spurious bindings clear.
Caught by joshuagl: In pdb_clear_unused_xattrs(), the prepared statement has no bound parameters, so there's no bindings to clear. Signed-off-by: Seebs <seebs@seebs.net>
-rw-r--r--ChangeLog.txt3
-rw-r--r--pseudo_db.c1
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt
index d6359ca..8eb7917 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -1,3 +1,6 @@
+2016-07-29:
+ * (seebs) Don't clear bindings for a statement with no bindings.
+
2016-07-28:
* (seebs) Fix performance issue on deletion with xattr changes.
diff --git a/pseudo_db.c b/pseudo_db.c
index e7dd193..2008316 100644
--- a/pseudo_db.c
+++ b/pseudo_db.c
@@ -1486,7 +1486,6 @@ pdb_clear_unused_xattrs(void) {
dberr(file_db, "delete of unused xattrs may have failed");
}
sqlite3_reset(delete);
- sqlite3_clear_bindings(delete);
}
/* we want to delete extended attributes for a device/inode if there