]> git.ozlabs.org Git - ccan/blobdiff - ccan/ntdb/test/no-fsync.h
ntdb: next-generation trivial key-value database
[ccan] / ccan / ntdb / test / no-fsync.h
diff --git a/ccan/ntdb/test/no-fsync.h b/ccan/ntdb/test/no-fsync.h
new file mode 100644 (file)
index 0000000..f0c098e
--- /dev/null
@@ -0,0 +1,6 @@
+#ifndef NTDB_NO_FSYNC_H
+#define NTDB_NO_FSYNC_H
+/* Obey $TDB_NO_FSYNC, a bit like tdb does (only note our NTDB_NOSYNC
+ * does less) */
+#define MAYBE_NOSYNC (getenv("TDB_NO_FSYNC") ? NTDB_NOSYNC : 0)
+#endif