svn commit: samba r10233 - in
branches/SAMBA_4_0/source/lib/ldb/ldb_sqlite3: .
idra at samba.org
idra at samba.org
Wed Sep 14 23:14:42 GMT 2005
Author: idra
Date: 2005-09-14 23:14:42 +0000 (Wed, 14 Sep 2005)
New Revision: 10233
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=10233
Log:
add commented PRAGMA to avoid fsyncs
Modified:
branches/SAMBA_4_0/source/lib/ldb/ldb_sqlite3/ldb_sqlite3.c
Changeset:
Modified: branches/SAMBA_4_0/source/lib/ldb/ldb_sqlite3/ldb_sqlite3.c
===================================================================
--- branches/SAMBA_4_0/source/lib/ldb/ldb_sqlite3/ldb_sqlite3.c 2005-09-14 22:45:49 UTC (rev 10232)
+++ branches/SAMBA_4_0/source/lib/ldb/ldb_sqlite3/ldb_sqlite3.c 2005-09-14 23:14:42 UTC (rev 10233)
@@ -1616,7 +1616,7 @@
/*
* Triggers
*/
-
+
"CREATE TRIGGER ldb_object_classes_insert_tr"
" AFTER INSERT"
" ON ldb_object_classes"
@@ -1637,7 +1637,7 @@
" SET max_child_num = max_child_num + 1"
" WHERE class_name = new.parent_class_name;"
" END;"
-
+
/*
* Table initialization
*/
@@ -1667,6 +1667,12 @@
return -1;
}
+ /* DANGEROUS
+ if (query_norows(lsqlite3, "PRAGMA synchronous = OFF;") != 0) {
+ return -1;
+ }
+ */
+
/* Establish a busy timeout of 30 seconds */
if ((ret = sqlite3_busy_timeout(lsqlite3->sqlite,
30000)) != SQLITE_OK) {
More information about the samba-cvs
mailing list