]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Add Caveat: Readers need write access. Whitespace.
authorHallvard Furuseth <hallvard@openldap.org>
Thu, 3 Oct 2013 22:48:19 +0000 (00:48 +0200)
committerHallvard Furuseth <hallvard@openldap.org>
Thu, 3 Oct 2013 22:51:58 +0000 (00:51 +0200)
libraries/liblmdb/lmdb.h
libraries/liblmdb/mdb.c
libraries/liblmdb/mdb_stat.c
libraries/liblmdb/midl.c

index 8cdac26b062296fc19de1a96b524bb0b715c5162..f6dfa60c38f877c12b995a53ea3ed121f3b54ff9 100644 (file)
  *       BSD systems or when otherwise configured with MDB_USE_POSIX_SEM.
  *       Multiple users can cause startup to fail later, as noted above.
  *
+ *     - There is normally no pure read-only mode, since readers need write
+ *       access to locks and lock file. Exceptions: On read-only filesystems
+ *       or with the #MDB_NOLOCK flag described under #mdb_env_open().
+ *
  *     - A thread can only use one transaction at a time, plus any child
  *       transactions.  Each transaction belongs to one thread.  See below.
  *       The #MDB_NOTLS flag changes this for read-only transactions.
@@ -489,7 +493,7 @@ int  mdb_env_create(MDB_env **env);
         *              like wild pointer writes and other bad updates into the database.
         *              Incompatible with nested transactions.
         *              Processes with and without MDB_WRITEMAP on the same environment do
-        *              not cooperate well. 
+        *              not cooperate well.
         *      <li>#MDB_NOMETASYNC
         *              Flush system buffers to disk only once per transaction, omit the
         *              metadata flush. Defer that until the system flushes files to disk,
index 2f671ed0a15da7406c9bd063eb0d557fdb3df159..d1cd8643fc61eafdd1545ec9e71d14fe3f462536 100644 (file)
@@ -8258,7 +8258,7 @@ static int mdb_pid_insert(pid_t *ids, pid_t pid)
                        return -1;
                }
        }
-       
+
        if( val > 0 ) {
                ++cursor;
        }
index aeb573a4951f136ac198bfa46cf7cde18a1f31a9..40bd4ccf1d18e4dba10ceb843167dd4e3fb17e12 100644 (file)
@@ -199,7 +199,7 @@ int main(int argc, char *argv[])
                printf("mdb_open failed, error %d %s\n", rc, mdb_strerror(rc));
                goto txn_abort;
        }
-   
+
        rc = mdb_stat(txn, dbi, &mst);
        if (rc) {
                printf("mdb_stat failed, error %d %s\n", rc, mdb_strerror(rc));
index 0225af95844abadbf1e4b0883e85a48761a96fd9..5ee2129046091f13580e605e3ac15ca966a0b950 100644 (file)
@@ -59,7 +59,7 @@ unsigned mdb_midl_search( MDB_IDL ids, MDB_ID id )
                        return cursor;
                }
        }
-       
+
        if( val > 0 ) {
                ++cursor;
        }
@@ -89,7 +89,7 @@ int mdb_midl_insert( MDB_IDL ids, MDB_ID id )
                /* no room */
                --ids[0];
                return -2;
-       
+
        } else {
                /* insert id */
                for (i=ids[0]; i>x; i--)