]> git.ozlabs.org Git - ccan/blobdiff - junkcode/rusty@rustcorp.com.au-ntdb/test/no-fsync.h
ccan/ntdb: demote to junkcode.
[ccan] / junkcode / rusty@rustcorp.com.au-ntdb / test / no-fsync.h
diff --git a/junkcode/rusty@rustcorp.com.au-ntdb/test/no-fsync.h b/junkcode/rusty@rustcorp.com.au-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