mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-21 07:09:34 -05:00
Add Caveat: Readers need write access. Whitespace.
This commit is contained in:
parent
0f9b79e12c
commit
9f7ae8925f
4 changed files with 9 additions and 5 deletions
|
|
@ -66,6 +66,10 @@
|
||||||
* BSD systems or when otherwise configured with MDB_USE_POSIX_SEM.
|
* BSD systems or when otherwise configured with MDB_USE_POSIX_SEM.
|
||||||
* Multiple users can cause startup to fail later, as noted above.
|
* 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
|
* - A thread can only use one transaction at a time, plus any child
|
||||||
* transactions. Each transaction belongs to one thread. See below.
|
* transactions. Each transaction belongs to one thread. See below.
|
||||||
* The #MDB_NOTLS flag changes this for read-only transactions.
|
* 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.
|
* like wild pointer writes and other bad updates into the database.
|
||||||
* Incompatible with nested transactions.
|
* Incompatible with nested transactions.
|
||||||
* Processes with and without MDB_WRITEMAP on the same environment do
|
* Processes with and without MDB_WRITEMAP on the same environment do
|
||||||
* not cooperate well.
|
* not cooperate well.
|
||||||
* <li>#MDB_NOMETASYNC
|
* <li>#MDB_NOMETASYNC
|
||||||
* Flush system buffers to disk only once per transaction, omit the
|
* Flush system buffers to disk only once per transaction, omit the
|
||||||
* metadata flush. Defer that until the system flushes files to disk,
|
* metadata flush. Defer that until the system flushes files to disk,
|
||||||
|
|
|
||||||
|
|
@ -8258,7 +8258,7 @@ static int mdb_pid_insert(pid_t *ids, pid_t pid)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if( val > 0 ) {
|
if( val > 0 ) {
|
||||||
++cursor;
|
++cursor;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -199,7 +199,7 @@ int main(int argc, char *argv[])
|
||||||
printf("mdb_open failed, error %d %s\n", rc, mdb_strerror(rc));
|
printf("mdb_open failed, error %d %s\n", rc, mdb_strerror(rc));
|
||||||
goto txn_abort;
|
goto txn_abort;
|
||||||
}
|
}
|
||||||
|
|
||||||
rc = mdb_stat(txn, dbi, &mst);
|
rc = mdb_stat(txn, dbi, &mst);
|
||||||
if (rc) {
|
if (rc) {
|
||||||
printf("mdb_stat failed, error %d %s\n", rc, mdb_strerror(rc));
|
printf("mdb_stat failed, error %d %s\n", rc, mdb_strerror(rc));
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,7 @@ unsigned mdb_midl_search( MDB_IDL ids, MDB_ID id )
|
||||||
return cursor;
|
return cursor;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if( val > 0 ) {
|
if( val > 0 ) {
|
||||||
++cursor;
|
++cursor;
|
||||||
}
|
}
|
||||||
|
|
@ -89,7 +89,7 @@ int mdb_midl_insert( MDB_IDL ids, MDB_ID id )
|
||||||
/* no room */
|
/* no room */
|
||||||
--ids[0];
|
--ids[0];
|
||||||
return -2;
|
return -2;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
/* insert id */
|
/* insert id */
|
||||||
for (i=ids[0]; i>x; i--)
|
for (i=ids[0]; i>x; i--)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue