]> git.ozlabs.org Git - ccan/commitdiff
tdb2: remove TDB1 TDB_NO_FSYNC environment variable hack.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Aug 2011 05:45:16 +0000 (15:15 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Aug 2011 05:45:16 +0000 (15:15 +0930)
The caller should do this: the SAMBA compatibility later does.

ccan/tdb2/tdb1_open.c

index 65bc2dba14635e5833d6ab18368095de12cb02bf..aed4df65585bf8c45f353f1ccbfbda6bb29943aa 100644 (file)
@@ -266,10 +266,6 @@ struct tdb1_context *tdb1_open_ex(const char *name, int hash_size, int tdb1_flag
                goto fail;
        }
 
-       if (getenv("TDB_NO_FSYNC")) {
-               tdb->flags |= TDB1_NOSYNC;
-       }
-
        /*
         * TDB1_ALLOW_NESTING is the default behavior.
         * Note: this may change in future versions!