diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-09-07 11:07:34 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-09-07 11:07:34 +0000 |
commit | 2c874db2dd8b34a36f00284c2c5d215a4c9506ac (patch) | |
tree | 679922799ac611eeff4513bfb7b0f880f1277b4f /db2/mp | |
parent | 88c9111883a14f2f3fd31471df6923f76b97e1a0 (diff) | |
download | glibc-2c874db2dd8b34a36f00284c2c5d215a4c9506ac.tar.gz glibc-2c874db2dd8b34a36f00284c2c5d215a4c9506ac.tar.xz glibc-2c874db2dd8b34a36f00284c2c5d215a4c9506ac.zip |
Update.
* db2/btree/bt_cursor.c: Likewise. * db2/common/db_region.db_c: Likewise. * db2/common/db_salloc.db_c: Likewise. * db2/db/db.c: Likewise. * db2/db/db_rec.c: Likewise. * db2/hash/hash.c: Likewise. * db2/hash/hash_page.c: Likewise. * db2/hash/hash_rec.c: Likewise. * db2/log/log_findckp.c: Likewise. * db2/log/log_get.c: Likewise. * db2/log/log_put.c: Likewise. * db2/mp/mp_fget.c: Likewise. * db2/mp/mp_fput.c: Likewise. * db2/mp/mp_region.c: Likewise.
Diffstat (limited to 'db2/mp')
-rw-r--r-- | db2/mp/mp_fget.c | 3 | ||||
-rw-r--r-- | db2/mp/mp_fput.c | 3 | ||||
-rw-r--r-- | db2/mp/mp_region.c | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/db2/mp/mp_fget.c b/db2/mp/mp_fget.c index c8ae2e9d98..0777aa7dc6 100644 --- a/db2/mp/mp_fget.c +++ b/db2/mp/mp_fget.c @@ -139,7 +139,7 @@ memp_fget(dbmfp, pgnoaddr, flags, addrp) * It would be possible to do so by reference counting the open * pages from the mmap, but it's unclear to me that it's worth it. */ - if (dbmfp->addr != NULL && F_ISSET(mfp, MP_CAN_MMAP)) + if (dbmfp->addr != NULL && F_ISSET(mfp, MP_CAN_MMAP)) { if (*pgnoaddr > mfp->orig_last_pgno) { /* * !!! @@ -160,6 +160,7 @@ memp_fget(dbmfp, pgnoaddr, flags, addrp) ++mfp->stat.st_map; goto done; } + } /* Search the hash chain for the page. */ for (bhp = SH_TAILQ_FIRST(&dbmp->htab[bucket], __bh); diff --git a/db2/mp/mp_fput.c b/db2/mp/mp_fput.c index 5675493137..48fdfc3b7f 100644 --- a/db2/mp/mp_fput.c +++ b/db2/mp/mp_fput.c @@ -125,7 +125,7 @@ memp_fput(dbmfp, pgaddr, flags) * next time the memp_sync function runs we try writing it there, as * the checkpoint application better be able to write all of the files. */ - if (F_ISSET(bhp, BH_WRITE)) + if (F_ISSET(bhp, BH_WRITE)) { if (F_ISSET(bhp, BH_DIRTY)) { if (__memp_bhwrite(dbmp, dbmfp->mfp, bhp, NULL, &wrote) != 0 || !wrote) @@ -136,6 +136,7 @@ memp_fput(dbmfp, pgaddr, flags) --dbmfp->mfp->lsn_cnt; --mp->lsn_cnt; } + } /* Move the buffer to the head/tail of the LRU chain. */ SH_TAILQ_REMOVE(&mp->bhq, bhp, q, __bh); diff --git a/db2/mp/mp_region.c b/db2/mp/mp_region.c index 6b92fbdad4..b8a72286cd 100644 --- a/db2/mp/mp_region.c +++ b/db2/mp/mp_region.c @@ -202,12 +202,13 @@ __memp_ropen(dbmp, path, cachesize, mode, is_private, flags) * Up the user's cachesize by 25% to account for our overhead. */ defcache = 0; - if (cachesize < DB_CACHESIZE_MIN) + if (cachesize < DB_CACHESIZE_MIN) { if (cachesize == 0) { defcache = 1; cachesize = DB_CACHESIZE_DEF; } else cachesize = DB_CACHESIZE_MIN; + } rlen = cachesize + cachesize / 4; /* |