From d861cec6f1567cff2c729a1d803d4f4ca165b5b7 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Wed, 15 Oct 1997 13:38:56 -0500 Subject: [svn-r121] Simplified fix for seek optimizing. --- src/H5F.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/H5F.c b/src/H5F.c index eccb1ef..6cba7d0 100644 --- a/src/H5F.c +++ b/src/H5F.c @@ -814,24 +814,12 @@ H5F_open (const char *name, uintn flags, } /* What is the current size of the file? */ -#ifndef LATER - /* - * Remember the current position so we can reset it. If not, the seek() - * optimization stuff gets confused. Eventually we should have a - * get_filesize() method for the various file types we'll have. - */ - { - size_t curpos = H5F_TELL (f->shared->file_handle); -#endif if (H5F_SEEKEND (f->shared->file_handle)<0) { /* Cannot determine file size */ HGOTO_ERROR (H5E_FILE, H5E_CANTINIT, NULL); } f->shared->logical_len = H5F_TELL (f->shared->file_handle); -#ifndef LATER - H5F_SEEK (f->shared->file_handle, curpos); - } -#endif + f->shared->last_op=OP_SEEK; /* change the last operation to a seek */ /* Success! */ -- cgit v0.12