summaryrefslogtreecommitdiff
path: root/source3/tdb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-10-03 22:58:37 +0000
committerJeremy Allison <jra@samba.org>2001-10-03 22:58:37 +0000
commit3a17bab00f7ab3a3e506c5a6b10a85a8cb65b0d2 (patch)
tree9bed5116a2e87ee2a6393fabbcb926b5eb908bdf /source3/tdb
parenta42efb497153dcca1fad227e28f5eaf41ee943c3 (diff)
downloadsamba-3a17bab00f7ab3a3e506c5a6b10a85a8cb65b0d2.tar.gz
samba-3a17bab00f7ab3a3e506c5a6b10a85a8cb65b0d2.tar.bz2
samba-3a17bab00f7ab3a3e506c5a6b10a85a8cb65b0d2.zip
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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/tdb/tdb.c b/source3/tdb/tdb.c
index b90c307ec6..d0527919bc 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 */