2006-12-19 00:17:44 +01:00
|
|
|
Support a database-local fsync setting. Needs berkeley db patch.
|
|
|
|
|
2017-01-19 16:41:55 +01:00
|
|
|
--- ./lib/backend/db3.c.orig 2017-01-19 10:31:06.874215725 +0000
|
|
|
|
+++ ./lib/backend/db3.c 2017-01-19 10:32:51.825873926 +0000
|
|
|
|
@@ -73,8 +73,10 @@ static const struct poptOption rdbOption
|
2011-05-16 18:07:44 +02:00
|
|
|
{ "mp_size", 0,POPT_ARG_INT, &staticcfg.db_cachesize, 0,
|
|
|
|
NULL, NULL },
|
2006-12-19 00:17:44 +01:00
|
|
|
|
|
|
|
+#if 0
|
2011-05-16 18:07:44 +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-16 18:07:44 +02:00
|
|
|
/* Per-dbi options */
|
2017-01-19 16:41:55 +01:00
|
|
|
{ "nommap", 0,POPT_BIT_SET, &staticdbicfg.dbi_oflags, DB_NOMMAP,
|
|
|
|
@@ -84,6 +86,8 @@ static const struct poptOption rdbOption
|
2006-12-19 00:17:44 +01:00
|
|
|
NULL, NULL },
|
2017-01-19 16:41:55 +01:00
|
|
|
{ "lockdbfd", 0,POPT_ARG_NONE, &staticdbicfg.dbi_lockdbfd, 0,
|
2006-12-19 00:17:44 +01:00
|
|
|
NULL, NULL },
|
2017-01-19 16:41:55 +01:00
|
|
|
+ { "nofsync", 0,POPT_BIT_SET, &staticdbicfg.dbi_oflags, DB_NOFSYNC,
|
2006-12-19 00:17:44 +01:00
|
|
|
+ NULL, NULL },
|
|
|
|
|
2011-05-16 18:07:44 +02:00
|
|
|
POPT_TABLEEND
|
|
|
|
};
|