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:
parent
a394a8104e
commit
ff515ff477
@ -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!
|
||||
|
Loading…
Reference in New Issue
Block a user