git.samba.org
/
abartlet
/
samba.git
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
trying to get HEAD building again. If you want the code
[abartlet/samba.git/.git]
/
source3
/
tdb
/
tdb.c
diff --git
a/source3/tdb/tdb.c
b/source3/tdb/tdb.c
index c414ae0d3108ccaf12aa9165d171d14bc8127a90..34681ea78f28fea90617ad1699fae9e37abd7eef 100644
(file)
--- a/
source3/tdb/tdb.c
+++ b/
source3/tdb/tdb.c
@@
-1257,7
+1257,8
@@
static int tdb_next_lock(TDB_CONTEXT *tdb, struct tdb_traverse_lock *tlock,
/* Try to clean dead ones from old traverses */
current = tlock->off;
tlock->off = rec->next;
- if (do_delete(tdb, current, rec) != 0)
+ if (!tdb->read_only &&
+ do_delete(tdb, current, rec) != 0)
goto fail;
}
tdb_unlock(tdb, tlock->hash, F_WRLCK);