1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

tdb: added TDB_NO_FSYNC env variable

this might help reduce test times and load on test machines
This commit is contained in:
Andrew Tridgell 2010-09-16 20:06:44 +10:00
parent a394a8104e
commit ff515ff477

View File

@ -228,6 +228,10 @@ struct tdb_context *tdb_open_ex(const char *name, int hash_size, int tdb_flags,
goto fail;
}
if (getenv("TDB_NO_FSYNC")) {
tdb->flags |= TDB_NOSYNC;
}
/*
* TDB_ALLOW_NESTING is the default behavior.
* Note: this may change in future versions!