Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
bbbc211e
Commit
bbbc211e
authored
May 29, 1999
by
Vadim B. Mikheev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix xid table sizing.
parent
dfefad7d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
src/backend/storage/lmgr/lock.c
src/backend/storage/lmgr/lock.c
+2
-2
src/include/storage/lock.h
src/include/storage/lock.h
+3
-2
No files found.
src/backend/storage/lmgr/lock.c
View file @
bbbc211e
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.5
4 1999/05/25 22:42:03 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.5
5 1999/05/29 06:14:42 vadim
Exp $
*
* NOTES
* Outside modules can create a lock table and acquire/release
...
...
@@ -1532,7 +1532,7 @@ LockShmemSize(int maxBackends)
SHMEM_LOCKTAB_DATASIZE
);
/* xidHash table */
size
+=
hash_estimate_size
(
maxBackends
,
size
+=
hash_estimate_size
(
NLOCKENTS
(
maxBackends
)
,
SHMEM_XIDTAB_KEYSIZE
,
SHMEM_XIDTAB_DATASIZE
);
...
...
src/include/storage/lock.h
View file @
bbbc211e
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: lock.h,v 1.2
8 1999/05/25 22:43:26 momjian
Exp $
* $Id: lock.h,v 1.2
9 1999/05/29 06:14:42 vadim
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -31,10 +31,11 @@ typedef int MASK;
* See LockShmemSize() in lock.c.
*
* NLOCKS_PER_XACT - The number of unique locks acquired in a transaction
* (should be configurable!)
* NLOCKENTS - The maximum number of lock entries in the lock table.
* ----------------------
*/
#define NLOCKS_PER_XACT
40
#define NLOCKS_PER_XACT
64
#define NLOCKENTS(maxBackends) (NLOCKS_PER_XACT*(maxBackends))
typedef
int
LOCKMODE
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment