summaryrefslogtreecommitdiff
path: root/source3/tdb/tdb.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-04-10 01:04:13 +0000
committerJeremy Allison <jra@samba.org>2002-04-10 01:04:13 +0000
commit4ad0ff29bf44e2506311f672bf912e7a2d39048a (patch)
tree1fdb01989a1fb36ef35e408950b6ce8c960c9872 /source3/tdb/tdb.c
parent74af2c2cca3f2a5d54f013c596d0093d279c8920 (diff)
downloadsamba-4ad0ff29bf44e2506311f672bf912e7a2d39048a.tar.gz
Added Shirish's client side caching policy change.
Jeremy. (This used to be commit 16015c07eab2e57fa3771051e3e08fde21757cfa)
Diffstat (limited to 'source3/tdb/tdb.c')
-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 0a847ed690c..98caca82a10 100644
--- a/source3/tdb/tdb.c
+++ b/source3/tdb/tdb.c
@@ -306,7 +306,8 @@ static int tdb_oob(TDB_CONTEXT *tdb, tdb_off len, int probe)
}
/* Unmap, update size, remap */
- tdb_munmap(tdb);
+ if (tdb_munmap(tdb) == -1)
+ return TDB_ERRCODE(TDB_ERR_IO, -1);
tdb->map_size = st.st_size;
tdb_mmap(tdb);
return 0;