2006-12-19 00:17:44 +01:00
|
|
|
Support a database-local fsync setting. Needs berkeley db patch.
|
|
|
|
|
2011-05-18 17:08:31 +02:00
|
|
|
--- ./lib/backend/dbconfig.c.orig 2011-01-03 13:57:41.000000000 +0000
|
|
|
|
+++ ./lib/backend/dbconfig.c 2011-05-10 17:00:29.000000000 +0000
|
|
|
|
@@ -58,8 +58,10 @@ static const struct poptOption rdbOption
|
|
|
|
{ "mp_size", 0,POPT_ARG_INT, &staticcfg.db_cachesize, 0,
|
|
|
|
NULL, NULL },
|
2006-12-19 00:17:44 +01:00
|
|
|
|
|
|
|
+#if 0
|
2011-05-18 17:08:31 +02:00
|
|
|
{ "nofsync", 0,POPT_ARG_NONE, &staticcfg.db_no_fsync, 0,
|
|
|
|
NULL, NULL },
|
2006-12-19 00:17:44 +01:00
|
|
|
+#endif
|
|
|
|
|
2011-05-18 17:08:31 +02:00
|
|
|
/* Per-dbi options */
|
|
|
|
{ "nommap", 0,POPT_BIT_SET, &staticdbi.dbi_oflags, DB_NOMMAP,
|
|
|
|
@@ -69,6 +71,8 @@ static const struct poptOption rdbOption
|
2006-12-19 00:17:44 +01:00
|
|
|
NULL, NULL },
|
2011-05-18 17:08:31 +02:00
|
|
|
{ "lockdbfd", 0,POPT_ARG_NONE, &staticdbi.dbi_lockdbfd, 0,
|
2006-12-19 00:17:44 +01:00
|
|
|
NULL, NULL },
|
2011-05-18 17:08:31 +02:00
|
|
|
+ { "nofsync", 0,POPT_BIT_SET, &staticdbi.dbi_oflags, DB_NOFSYNC,
|
2006-12-19 00:17:44 +01:00
|
|
|
+ NULL, NULL },
|
|
|
|
|
2011-05-18 17:08:31 +02:00
|
|
|
POPT_TABLEEND
|
|
|
|
};
|