]> granicus.if.org Git - postgresql/commitdiff
*** src/backend/storage/file/fd.c.orig Thu Sep 12 17:17:21 1996
authorMarc G. Fournier <scrappy@hub.org>
Sun, 22 Sep 1996 01:30:52 +0000 (01:30 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Sun, 22 Sep 1996 01:30:52 +0000 (01:30 +0000)
--- src/backend/storage/file/fd.c       Thu Sep 12 17:23:38 1996
***************
*** 262,268 ****
      Delete(file);

      /* save the seek position */
!     fileP->seekPos = lseek(fileP->fd, 0L, SEEK_CUR);
      Assert( fileP->seekPos != -1);

      /* if we have written to the file, sync it */
--- 262,268 ----
      Delete(file);

      /* save the seek position */
!     fileP->seekPos = (long) lseek(fileP->fd, 0L, SEEK_CUR);
      Assert( fileP->seekPos != -1);

      /* if we have written to the file, sync it */

Submitted by: Randy Terbush <randy@zyzzyva.com>

src/backend/storage/file/fd.c

index 9adb9985c9a5592267343b2a1923676c8374e3ff..674abe21aa453f1b1cfb95423d236e2ed67f3fd3 100644 (file)
@@ -6,7 +6,7 @@
  * Copyright (c) 1994, Regents of the University of California
  *
  * IDENTIFICATION
- *    $Id: fd.c,v 1.4 1996/07/22 22:59:50 scrappy Exp $
+ *    $Id: fd.c,v 1.5 1996/09/22 01:30:52 scrappy Exp $
  *
  * NOTES:
  *
@@ -262,7 +262,7 @@ LruDelete(File file)
     Delete(file);
     
     /* save the seek position */
-    fileP->seekPos = lseek(fileP->fd, 0L, SEEK_CUR);
+    fileP->seekPos = (long) lseek(fileP->fd, 0L, SEEK_CUR);
     Assert( fileP->seekPos != -1);
     
     /* if we have written to the file, sync it */