diff options
author | Vadim B. Mikheev <vadim4o@yahoo.com> | 1998-07-27 19:38:40 +0000 |
---|---|---|
committer | Vadim B. Mikheev <vadim4o@yahoo.com> | 1998-07-27 19:38:40 +0000 |
commit | be8300b18f26363c0b18c62fa884a6a62e26405e (patch) | |
tree | a44ac3f51d81a7616bd9c7912fa23a5e81c9d483 /src/backend/storage/large_object/inv_api.c | |
parent | f7f989c9907b181f1785c699e6384e6eba8ae9a5 (diff) | |
download | postgresql-be8300b18f26363c0b18c62fa884a6a62e26405e.tar.gz postgresql-be8300b18f26363c0b18c62fa884a6a62e26405e.zip |
Use Snapshot in heap access methods.
Diffstat (limited to 'src/backend/storage/large_object/inv_api.c')
-rw-r--r-- | src/backend/storage/large_object/inv_api.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/backend/storage/large_object/inv_api.c b/src/backend/storage/large_object/inv_api.c index e92c75f0a34..3924330c35f 100644 --- a/src/backend/storage/large_object/inv_api.c +++ b/src/backend/storage/large_object/inv_api.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/storage/large_object/inv_api.c,v 1.31 1998/07/21 04:17:24 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/storage/large_object/inv_api.c,v 1.32 1998/07/27 19:38:11 vadim Exp $ * *------------------------------------------------------------------------- */ @@ -656,9 +656,13 @@ inv_fetchtup(LargeObjectDesc *obj_desc, Buffer *bufP) * For time travel, we need to use the actual time qual here, * rather that NowTimeQual. We currently have no way to pass * a time qual in. + * + * This is now valid for snapshot !!! + * And should be fixed in some way... - vadim 07/28/98 + * */ - htup = heap_fetch(obj_desc->heap_r, false, + htup = heap_fetch(obj_desc->heap_r, SnapshotNow, &(res->heap_iptr), bufP); } while (htup == (HeapTuple) NULL); @@ -669,7 +673,7 @@ inv_fetchtup(LargeObjectDesc *obj_desc, Buffer *bufP) } else { - htup = heap_fetch(obj_desc->heap_r, false, + htup = heap_fetch(obj_desc->heap_r, SnapshotNow, &(obj_desc->htid), bufP); } @@ -1235,7 +1239,7 @@ _inv_getsize(Relation hreln, TupleDesc hdesc, Relation ireln) if (buf != InvalidBuffer) ReleaseBuffer(buf); - htup = heap_fetch(hreln, false, &(res->heap_iptr), &buf); + htup = heap_fetch(hreln, SnapshotNow, &(res->heap_iptr), &buf); pfree(res); } while (!HeapTupleIsValid(htup)); |