mirror of
https://github.com/samba-team/samba.git
synced 2025-01-15 23:24:37 +03:00
tdb: added TDB_NO_FSYNC env variable
this might help reduce test times and load on test machines (This used to be ctdb commit 5c4240c364c52073ca64fddf2aa2c1593db0093b)
This commit is contained in:
parent
bc2094c9ca
commit
bf8dfcfe7d
@ -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…
x
Reference in New Issue
Block a user