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
2a677424
Commit
2a677424
authored
Jul 22, 1998
by
Vadim B. Mikheev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix _lo_commit: core if LO memmory context was not created (LO were not used?)
parent
5afe1714
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
src/backend/libpq/be-fsstubs.c
src/backend/libpq/be-fsstubs.c
+9
-5
No files found.
src/backend/libpq/be-fsstubs.c
View file @
2a677424
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/libpq/be-fsstubs.c,v 1.2
2 1998/07/21 04:17:23 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/libpq/be-fsstubs.c,v 1.2
3 1998/07/22 05:48:59 vadim
Exp $
*
* NOTES
* This should be moved to a more appropriate place. It is here
...
...
@@ -375,14 +375,18 @@ lo_export(Oid lobjId, text *filename)
void
_lo_commit
(
void
)
{
int
i
;
int
i
;
MemoryContext
currentContext
;
if
(
fscxt
==
NULL
)
return
;
currentContext
=
MemoryContextSwitchTo
((
MemoryContext
)
fscxt
);
for
(
i
=
0
;
i
<
MAX_LOBJ_FDS
;
i
++
)
{
if
(
cookies
[
i
]
!=
NULL
)
inv_cleanindex
(
cookies
[
i
]);
}
for
(
i
=
0
;
i
<
MAX_LOBJ_FDS
;
i
++
)
{
if
(
cookies
[
i
]
!=
NULL
)
inv_cleanindex
(
cookies
[
i
]);
}
MemoryContextSwitchTo
(
currentContext
);
...
...
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