diff options
author | Jeremy Allison <jra@samba.org> | 2001-10-03 22:58:37 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-10-03 22:58:37 +0000 |
commit | 3a17bab00f7ab3a3e506c5a6b10a85a8cb65b0d2 (patch) | |
tree | 9bed5116a2e87ee2a6393fabbcb926b5eb908bdf /source3/tdb | |
parent | a42efb497153dcca1fad227e28f5eaf41ee943c3 (diff) | |
download | samba-3a17bab00f7ab3a3e506c5a6b10a85a8cb65b0d2.tar.gz |
Ensure accessing NT member servers works with a Samba PDC. Don't
change these timestamp settings without good reason.
Remove CLEAR_IF_FIRST flag is tdb is read-only.
Jeremy.
(This used to be commit a71d9d98b013a6c30fd85524b7cdc929bdbd9bcb)
Diffstat (limited to 'source3/tdb')
-rw-r--r-- | source3/tdb/tdb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/tdb/tdb.c b/source3/tdb/tdb.c index b90c307ec6b..d0527919bc7 100644 --- a/source3/tdb/tdb.c +++ b/source3/tdb/tdb.c @@ -1377,8 +1377,9 @@ TDB_CONTEXT *tdb_open(char *name, int hash_size, int tdb_flags, hash_size = DEFAULT_HASH_SIZE; if ((open_flags & O_ACCMODE) == O_RDONLY) { tdb.read_only = 1; - /* read only databases don't do locking */ + /* read only databases don't do locking or clear if first */ tdb.flags |= TDB_NOLOCK; + tdb.flags &= ~TDB_CLEAR_IF_FIRST; } /* internal databases don't mmap or lock, and start off cleared */ |