]> git.pld-linux.org Git - packages/tdb.git/blame - tdb-tdb_store.patch
- up to 1.1.2; switch to samba implementation; add python bindings
[packages/tdb.git] / tdb-tdb_store.patch
CommitLineData
747530d7 1--- tdb-1.0.6/tdb.c Tue Dec 11 14:39:51 2001
2+++ tdb-1.0.6-lbw/tdb.c Mon Dec 2 14:50:37 2002
3@@ -1303,6 +1303,9 @@
4 char *p = NULL;
5 int ret = 0;
6
7+ /* do not allow a store to read-only database */
8+ if (tdb->read_only) return -1;
9+
10 /* find which hash bucket it is in */
11 hash = tdb_hash(&key);
12 if (!tdb_keylocked(tdb, hash))
13--- tdb-1.0.6/tdb_open.3 Tue May 8 23:35:46 2001
14+++ tdb-1.0.6-lbw/tdb_open.3 Mon Dec 2 14:53:03 2002
15@@ -20,10 +20,8 @@
16 .TP
17 .B TDB_INTERNAL
18 Don't use a file, instead store the data in memory. The
19-.I pathname
20-,
21-.I open_flags
22-, and
23+.I pathname
24+and
25 .I mode
26 are ignored in
27 this case. This is useful if you need a quick associative array or map.
This page took 0.150384 seconds and 4 git commands to generate.